![]() |
This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com
|
|||||||
| General Programming General NinjaScript programming questions. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Junior Member
Join Date: Sep 2011
Posts: 9
Thanks: 5
Thanked 1 time in 1 post
|
Hi, I debug my strategies and indicators using Visual Studio 2010 Pro. My three month trial period is over and I want to buy a license.
Is the Visual Studio 2010 LightSwitch version enough to debug NinjaTrader scripts? |
|
|
|
|
The following user says thank you to gofortips for this post: |
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,404
Thanks: 252
Thanked 974 times in 957 posts
|
gofortips, I believe that would work as well, as it offers debug mode / attach to process as well in contrast to Express.
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Member
Join Date: Sep 2010
Posts: 41
Thanks: 19
Thanked 0 times in 0 posts
|
Hi gofortips!
I set up a dubugging scenario with NT7 and Visual Studio Express 8.0. Everything working fine so far.I intend to debug strategies written in NT7 by using Visual Studio Express 8.0. The issue occured is that NinjaTrader does not give me the opportunity to set up my strategy I would like to debug while NT7 and Visual Studio Express is running. Could you please give me some core useful hints how to use Visual Studio in conjunction with NT7 for debugging? Many thanks! Robert |
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Aug 2011
Location: Denver, CO, USA
Posts: 2,895
Thanks: 241
Thanked 375 times in 365 posts
|
Robert,
Here is our help guide entry on this : http://www.ninjatrader.com/support/h..._debugging.htm
Adam P.
NinjaTrader Customer Service |
|
|
|
|
The following user says thank you to NinjaTrader_AdamP for this post: |
|
|
|
#5 |
|
Senior Member
Join Date: Jul 2007
Posts: 101
Thanks: 6
Thanked 18 times in 14 posts
|
Robert,
Found the information for the broken link. The old link was to the NT V6 Help Guide. To find the Visual Studio Debugging Help information for your version of NT: 1) In NT select Help then Help again then search for Visual Studio. Below are the instructions that are found there: Step 1: In the NinjaScript Editor enable "Debug Mode". Be sure to compile the NinjaScript assembly afterwards by pressing "F5" on your keyboard. Step 3: Open the NinjaScript source file within Microsoft Visual Studio and set your break point(s). Am working with Visual Studio 2010 Express and NT 7. Will post when I verify that NS debugging with VS 2010 Express works. Visual Studio 2012 Express will be released soon according to Microsoft. At this time you can get VS 2010 by downloading Visual C# 2010 Express here http://www.microsoft.com/visualstudi...tudio-overview . |
|
|
|
|
The following user says thank you to Jim W. for this post: |
|
|
|
#6 |
|
Member
Join Date: Sep 2010
Posts: 41
Thanks: 19
Thanked 0 times in 0 posts
|
Dear NinjaTrader_AdamP,
I use NT7 in conjunction with VS2010 in order to debug ninjascript strategies. I set up the debugging scenario as follows: http://www.ninjatrader.com/support/h..._debugging.htm The issue is that it does not appear the "strategy"(debugging) at the header of the windows as described in point 3. Even the break point is set but it does not appear the yellow arrow inside the break point. What is the mistake? Any idea? Many thanks. Rob |
|
|
|
|
|
#7 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,404
Thanks: 252
Thanked 974 times in 957 posts
|
Rob, please carefully go through the steps provided again - are you sure the NS assembly was compiled in debug mode? If yes, please close down all uses of your script in NT and open it in VS only, set your breakpoints and then press the 'continue' button in VS to start the process.
Bertrand
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Visual Studio 2010 Debug Mode not responding | lgarcia3 | General Programming | 5 | 08-19-2011 09:03 AM |
| debugging in Visual Studio | Buxxx | General Programming | 1 | 10-13-2010 06:23 AM |
| Visual Studio 2008 Debugging Crash | stormze | General Programming | 7 | 02-19-2010 10:13 AM |
| Visual Studio 2008 - Debugging | r2kTrader | Version 7 Beta General Questions & Bug Reports | 5 | 12-13-2009 08:11 PM |
| Debugging using Visual Studio | guym | Indicator Development | 2 | 11-28-2006 12:41 AM |