Game Development Community

Debuging TorqueX 1.5 Pro Beta in VC#2005 Express

by Sam M · in Torque X 2D · 11/29/2007 (6:22 pm) · 3 replies

This is more of a Visual C# question than a TorqueX one. I'm getting an error whenever I try to debug an example from TorqueX 1.5 Pro.

"A project with an Output Type of Class Library cannot be started directly.

In order to debug this project, add an executable project to this solution which references the library project. Set the executable project as the startup project."

Once I get the error I can run the game by opening it up in the bin folder, but it's a pain not to be able to or know how to debug it. Also I get an error whenever I try to run it on 360 and I think it's a similar problem. Thanks a lot for the beta GG, can't wait till I really get going on it.

#1
11/29/2007 (6:36 pm)
Right click on your project in the solution explorer and select 'Set as startup project' or something like that. You should then be able to run and debug from Visual C#.
#2
11/29/2007 (6:57 pm)
Ah thanks, that solves the PC problem. But when I try to debug a 1.5 demo for XBox I get this error:

Description: The name '_profiling' does not exist in the current context
File: Profiler.cs
Line: 692
#3
12/01/2007 (12:54 am)
I just commented out that line ;)

John K.