It is currently Fri Jun 23, 2017 8:25 am Advanced search

[C#] how to debug?

Code won't compile? Found a bug? Post here!

[C#] how to debug?

Postby supagu » Thu Dec 16, 2010 12:03 pm

So I've just downloaded the c# starter kit and got it compiling and want to test be able to run the code and debug it in c#. Is there a way I can set things up to allow me to do this?

i tried setting the external program to point to java.exe and suppling appropriate command line options

Start external program:
D:\BlackCarbon\SDK\Java\bin\java.exe

Command line args:
-jar tools/PlayGame.jar maps/map7.txt 1000 1000 log.txt "bin/Debug/PlanetWars.exe" "java -jar example_bots/RandomBot.jar" | java -jar tools/ShowGame.jar

Working directory:
D:\BlackCarbon\PlanetWars\PlanetWars

it loads up the console for half a second then it disapears.
supagu
Cadet
 
Posts: 2
Joined: Thu Dec 16, 2010 11:02 am

Re: [C#] how to debug?

Postby supagu » Fri Dec 17, 2010 6:21 am

is there any way to be able to break in your code when its run? something like attaching the debugger to a process?
supagu
Cadet
 
Posts: 2
Joined: Thu Dec 16, 2010 11:02 am


Return to Technical Issues

Who is online

Users browsing this forum: No registered users and 1 guest

cron