Forums

Debugging from the command line

General discussion about Cobra. Releases and general news will also be posted here.
Feel free to ask questions or just say "Hello".

Debugging from the command line

Postby Gameday » Mon May 03, 2010 9:57 pm

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?
Gameday
 
Posts: 27

Re: Debugging from the command line

Postby Charles » Tue May 04, 2010 12:44 am

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.
Charles
 
Posts: 2515
Location: Los Angeles, CA

Re: Debugging from the command line

Postby Gameday » Tue May 04, 2010 12:52 am

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.
Gameday
 
Posts: 27

Re: Debugging from the command line

Postby Charles » Tue May 04, 2010 1:57 am

Don't forget to use -d as in "cobra -d ..." to create debugging symbols.

Also see the new DebuggingTopics wiki page.
Charles
 
Posts: 2515
Location: Los Angeles, CA


Return to Discussion

Who is online

Users browsing this forum: No registered users and 50 guests

cron