NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 04-10-2012, 11:24 PM   #1
gofortips
Junior Member
 
Join Date: Sep 2011
Posts: 9
Thanks: 5
Thanked 1 time in 1 post
Default debugging with Visual Studio 2010 LightSwith

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?
gofortips is offline  
Reply With Quote
The following user says thank you to gofortips for this post:
Old 04-11-2012, 02:16 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,377
Thanks: 252
Thanked 966 times in 949 posts
Default

gofortips, I believe that would work as well, as it offers debug mode / attach to process as well in contrast to Express.
NinjaTrader_Bertrand is offline  
Reply With Quote
The following 2 users say thank you to NinjaTrader_Bertrand for this post:
Old 06-09-2012, 09:37 AM   #3
Robertp75
Member
 
Join Date: Sep 2010
Posts: 41
Thanks: 19
Thanked 0 times in 0 posts
Default

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
Robertp75 is offline  
Reply With Quote
Old 06-10-2012, 01:10 PM   #4
NinjaTrader_AdamP
NinjaTrader Customer Service
 
NinjaTrader_AdamP's Avatar
 
Join Date: Aug 2011
Location: Denver, CO, USA
Posts: 2,895
Thanks: 241
Thanked 375 times in 365 posts
Default

Robert,

Here is our help guide entry on this : http://www.ninjatrader.com/support/h..._debugging.htm
NinjaTrader_AdamP is offline  
Reply With Quote
The following user says thank you to NinjaTrader_AdamP for this post:
Old 09-13-2012, 11:48 AM   #5
Jim W.
Senior Member
 
Join Date: Jul 2007
Posts: 101
Thanks: 6
Thanked 18 times in 14 posts
Default

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 .
Jim W. is offline  
Reply With Quote
The following user says thank you to Jim W. for this post:
Old 10-22-2012, 05:47 PM   #6
Robertp75
Member
 
Join Date: Sep 2010
Posts: 41
Thanks: 19
Thanked 0 times in 0 posts
Default

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
Robertp75 is offline  
Reply With Quote
Old 10-23-2012, 03:41 AM   #7
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,377
Thanks: 252
Thanked 966 times in 949 posts
Default

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.
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 10-24-2012, 06:02 PM   #8
Robertp75
Member
 
Join Date: Sep 2010
Posts: 41
Thanks: 19
Thanked 0 times in 0 posts
Default

Hello NinjaTrader_Bertrand,

I figured out that only standardized predefined ninjascript indicators work for debugging. Own developed strategies could not be debugged even if no errors occured after compiling the strategies. I have no idea why.

But many thanks indeed.

Rob


Robertp75 is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -6. The time now is 10:58 PM.