Game Development Community

I'm having problem debugging C++ source

by Martin Ortiz · in Torque Game Engine Advanced · 02/03/2007 (3:45 pm) · 2 replies

I did a debug build, I checked the setting and debug info is included, but I can't seem to step into the C++ source code, it just runs. It aborts with error about main.cs (can't find it).

I set the working directory to the one with main.cs in it. In either case, I can't seem to step into the code.
Which source file, has the entry point for the program?

#1
02/06/2007 (9:37 am)
Make sure you chose the right main.cs. Perhaps you mistakenly used the wrong one. The correct entry point is the uppermost main.cs in the directory tree. That is, assuming you have the normal directory structure...
#2
02/06/2007 (2:17 pm)
"I set the working directory to the one with main.cs" your working directory should be set to ..\example and your command arguments set to something like -game terrain_water_demo (if you have not already setup the default game to run in example/main.cs ($defaultGame = "terrain_water_demo";))
"I can't seem to step into the C++ source code" Make sure the configuration is set to debug. Everybody at one time or another has tried to debug but found they forgot to set the solution configuation to debug.