Page 1 of 1

Debugging from the command line

PostPosted: Mon May 03, 2010 9:57 pm
by Gameday
I'm a big fan of scripting languages, and I'm guessing Chuck is familiar with pdb for Python.
For me ( I do a lot of scripting ) it's the most efficient way of debugging stuff, and having this sort of power in a language like this would be awesome.
Does something like that exist for Cobra?

Re: Debugging from the command line

PostPosted: Tue May 04, 2010 12:44 am
by Charles
Cobra rides on top of .NET and Mono. Also it generates the same kinds of classes, methods and statements that C# and VB use, so you can leverage tools like debuggers and profilers.

Debugging programs include:
Code: Select all
DbgCLR.exe
Mdbg.exe
Cordbg.exe

This blog post gives some useful information on debugging .NET programs sans Visual Studio:

http://blog.slickedit.com/2007/11/c-with-slickedit-no-visual-studio-required/

Looks like mdbg.exe is closest to pdb.

You might also use an IDE on your executable such as Visual Studio, MonoDevelop or SharpDevelop.

Re: Debugging from the command line

PostPosted: Tue May 04, 2010 12:52 am
by Gameday
As soon as I get more familiar with Cobra, I'm gonna do a rewrite of my Ruby projects.
I did a similar experiment with Scala, but in terms of development speed, I have the impression Cobra will be faster.

Re: Debugging from the command line

PostPosted: Tue May 04, 2010 1:57 am
by Charles
Don't forget to use -d as in "cobra -d ..." to create debugging symbols.

Also see the new DebuggingTopics wiki page.