Slim.net: How to debug test devices using visual studio?

I figured out how to run my tests from the command line using:

java -jar fitnesse.jar -c MyFixturePage?test&format=text -d "c:/utils/fitnesse/" -r "FitNesseRoot" 

Using this parameter as startup parameters for my Fixture build project in visual studio does not work . I use Slim runner and artist in my settings: http://github.com/jediwhale/fitsharp/downloads

Has anyone developed how to get debugging with Slim running in Visual Studio?

+6
fitnesse fitnesse-slim
source share
3 answers

The problem is that java starts another process in which your .NET code is executing, and then that process immediately shuts down. Here's a way to execute .NET code:

http://www.asoftwarecraft.com/2010/01/troubleshooting-with-fitsharp-and.html

+4
source share

Another good way is to simply enter the statement that the debugger starts. In our code, all of our fixtures are based on some simple custom basic fixtures with some utilities in them, such as | debug |

this statement simply launches the debugger as follows:

  public void Debug() { System.Diagnostics.Debugger.Launch(); } 

as soon as the statement is applied, the debugger starts.

this has the advantage that you can quickly put it wherever you want. Sometimes you may have a long test that uses the same statements over and over, in which case this is good, because you can do it right before that problem.

+5
source share

I created a simple utility that calls Debbuger.Launch without having to change the code or FitNesse script. This is very useful if your code and fitness scripts are in source control. See this blog post for more details.

0
source share

All Articles