RightEdge Forums
Main     Home          Members     Calendar     Who's On

Welcome Guest
        


1234»»»

Debugging Strategies Expand / Collapse
Message
Posted 4/9/2007 22:21:29 Post #2063
 

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru
I have just started playing around using the Microsoft CLR Debugger to debug RE strategies. For those that are not aware, it is provided free by MS as part of the .Net SDK. On initial inspection it seems to have everything you would need to debug your RE strategies, attach to process plus all the usual windows from Visual Studio (Express Editions of VS do not allow you to attach to process). Also given that it is just a debugger all the menu commands are pretty easy to find, and not buried under everything else. You could consider putting a button on a RE toolbar to launch this debugger and then include instructions on how to use it in the users manual. Given that it is free, it might give you a nice consistent way to show people how to debug their stategies. Have a look and see what you think. (If you have VS2005 on your machine then I think it is already installed at c:\program files\Microsoft Visual Studio8\SDK\v2.0\GuiDebug).
Posted 4/10/2007 05:37:59 Post #2064
 

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being
Thanks for sharing that information. That sounds like a really interesting possibility.

-Pete
(See also rightedge-ats Yahoo group )

Posted 4/10/2007 07:41:21 Post #2065
 

Lead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead Developer
Indeed a good suggestion!
Posted 4/19/2007 11:16:48 Post #2242
 

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being
People with Visual Studio Express (not the full version) need to install the .Net SDK 2.0 form here:

http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=fe6f2099-b7b4-4f47-a244-c96d69c35dec

to get GuiDebug


www.finantic.de
Our Trading System at C2: Topaz
Posted 4/19/2007 12:20:18 Post #2243
 

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being
Ok, I got "Microsoft CLR Debugger" running and attached it to the running RightEdge process.

Now I have no idea how to set a breakpoint in my script's code or otherwise watch "my" variables...

It says "No symbols have been loaded for this document"

Any ideas?


www.finantic.de
Our Trading System at C2: Topaz
Posted 4/19/2007 12:36:51 Post #2244
 

Lead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead Developer
Do you have the system generating debug info?  This is a setting in the project properties.  Also make sure that it's generating a .pdb file.

DrKoch (4/19/2007)
Ok, I got "Microsoft CLR Debugger" running and attached it to the running RightEdge process.

Now I have no idea how to set a breakpoint in my script's code or otherwise watch "my" variables...

It says "No symbols have been loaded for this document"

Any ideas?
Posted 8/16/2007 18:38:50 Post #3384
 

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie
Hi, I'm new here so I hope I'm not going over old ground.

Anyway, using Visual Studio to attach to the Right Edge process sounds like a great idea to me.  I believe I may have used this once in the past when I used to debug sever-side ASP scripts. 

Anyway, has anybody produced any step-by-step instructions on exatcly what to do?

I can use VS to attach to a process but I'm not sure what to do next in order to debug my RE systems?

Any advice would be greatly appreciated

Arold

Posted 8/16/2007 20:09:42 Post #3388
 

Lead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead Developer
It should work fine if you're using anything but Visual Studio Express Edition.  If you use VS Express Editions, there is not attach to process, unfortunately.

Here are the steps to make it work in Visual Studio.

Load RightEdge

Load Visual Studio, do Attach to Process and attach to RightEdge.exe.

Open your system in RightEdge

Open the source file(s) to your system in Visual Studio.

Set your breakpoints and run your system in RightEdge.  The breakpoints will get tripped.

arold_ite (8/16/2007)
Hi, I'm new here so I hope I'm not going over old ground.

Anyway, using Visual Studio to attach to the Right Edge process sounds like a great idea to me.  I believe I may have used this once in the past when I used to debug sever-side ASP scripts. 

Anyway, has anybody produced any step-by-step instructions on exatcly what to do?

I can use VS to attach to a process but I'm not sure what to do next in order to debug my RE systems?

Any advice would be greatly appreciated

Arold

Posted 7/17/2008 15:05:13 Post #6164
 

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie
I would like to walk through my strategy code one line at a time.  I followed the instructions from the last reply in this thread.  I open up my VS IDE and I open the source file.  I put breakpoints within the SymbolScript class and also the SystemBase class.  I attach to the process: rightedge.exe.  I then select a couple of tickers and click on the run simulation button in RE.  Then the performance report spits out but none of my breakpoints were tripped.  What am I doing wrong here?
Posted 7/17/2008 16:29:34 Post #6165
 

DeveloperDeveloperDeveloperDeveloperDeveloperDeveloperDeveloperDeveloper
Try right clicking on the root node of the project in the project tree. Select properties. Make sure the "generate debugging information option is enabled.

Let us know if this doesn't work.

Thanks,
Daniel
« Prev Topic | Next Topic »

1234»»»

Reading This Topic Expand / Collapse
Active Users: 2 (2 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: billb, young, dplaisted

Permissions Expand / Collapse

All times are GMT -5:00, Time now is 1:14am

2005-2007 © RightEdge Systems