how do you debug a tst file?
See original GitHub issueHI @frhagn
I have the following in .tst file and I would like to be able to console.log stuff so I can see what I am working with. Is that possible?
${
string KnockoutType(Property p) {
if (p.Type.IsEnumerable) {
console.log($p.Type);
return p.Type.Name.TrimEnd('[',']');
}
return p.Type;
}
thanks.
I am trying to use a 2 dimensional array in C# and converting that to a knockout observable array, but what appears to be happening is that Property.Type only has a single [] but $Type within a property section seems to have the proper [][]. So I would like to dump out these values to see what I am working with.
Thanks Greg
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (2 by maintainers)
Top Results From Across the Web
How do you debug Jest Tests?
Right-click on the icon next to the name of the test in the test file. In the menu that opens, click on Debug...
Read more >Debug unit tests with Test Explorer - Visual Studio (Windows)
In Test Explorer, select the test method(s) and then choose Debug on the right-click menu. Test execution details. For more information, about ...
Read more >How To Debug a Single Test Case
From the Run and Debug menu, select the debug configuration you created earlier and click Start Debugging. A new JavaScript debug terminal opens ......
Read more >Debugging a Test Script
To debug a script that is not currently active in the editor, click File > Debug. To debug the active script, click Run...
Read more >Debug a test, component, function library, or user code file
Select Tools > Options > API Testing tab > General node and then select Run test in debugging mode. Back to top. Slow...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
There may be a better solution but in terms of general debugging with Typewritter I usually append information to a string then output this within a comment in my template. Something like:
@sonuautade Yeah, but it is better than nothing.
@frhagn Would it be possible to have a way to print message via
System.Diagonistics.Debug.WriteLine
or, better yet, to have a flexible logging mechanism such asI’d be happy to create a PR for that if it sounds reasonable/feasible