[gme-users] Debugging BON2 Interpreters

Cuong Minh Tran vaioinman at googlemail.com
Wed Dec 1 15:43:58 CST 2010


Hi James

The instructions work perfectly. Thank you so much.

Kind regards

Cuong.

On 1 Dec 2010, at 15:08, James H. Hill wrote:

> Hi,
> 
> On Dec 1, 2010, at 8:29 AM, Cuong Minh Tran wrote:
> 
>> Hi everyone
>> 
>> I have been developing a few interpreters but it has been a great  
>> pain to debug them. I only used a very rudimentary way that is to  
>> add a lot of print command to follow the execution. This way is of  
>> course so limited.
>> 
>> So, just wonder if any of you have a brilliant solution for my  
>> problem.
>> 
>> Thank you very much in advance.
>> 
> 
> You can run them in the Visual Studio debugger, just like any other  
> DLL. To do so, however, is a two-part process.
> 
> Part 1: Run GME in debug mode
> ------------
> . Set a breakpoint in the interpreters source file so you can  
> actually  debug in Part 2.
> 
> . Make sure the interpreter you want to debug is set as the startup  
> project (i.e., right-click the project and select "Set as Startup  
> Project").
> 
> . Select Debug | Start Debugging... from the menu (or press F5). This  
> should popup a dialog box asking for an executable. In the dialog, put  
> the full path of GME, e.g.,
> 
>     C:\Program Files\GME\bin\gme.exe
> 
>   This will launch GME.
> 
> Part 2: Run the interpreter
> ---------
> . Open the model you want to debug. This will load your interpreter in  
> debug mode.
> 
> . Execute the interpreter you are debugging and it should stop at the  
> breakpoint you set in Part 1.
> 
> Now, you can walk the interpreter's code and debug it like any other  
> program in Visual Studio.
> 
> HTH,
> 
> James
> 
>> Cheers
>> 
>> Cuong Tran.
>> _______________________________________________
>> gme-users mailing list
>> gme-users at list.isis.vanderbilt.edu
>> http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users
> 
> _______________________________________________
> gme-users mailing list
> gme-users at list.isis.vanderbilt.edu
> http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users



More information about the gme-users mailing list