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

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 03-03-2012, 08:43 AM   #16
ds1111
Member
 
Join Date: Sep 2011
Location: Chicago
Posts: 76
Thanks: 9
Thanked 7 times in 7 posts
Default

Did you 'manually' add the references to the Ninja assemblies?

I had also to follow this (cut and pasted from BMTF http://www.bigmiketrading.com/ninjat...0-dummies.html)
"On VS, File > Open > Project > Documents > Ninja Trader 7 > bin > Custom > NinjaTrader.Custom"

That should open a project called NinjaTrader.Custom.

Remove the references for NinjaTrader.Core and WilsonORMapper.

Add references for NinjaTrader.Core and WilsonORMapper by navigating to the NT7 directory in Program Files.

Build Solution (F6).

You should get no errors, and you should now have VS2010 Solution in the NT7 directory in Documents. This is the one you will now use."

If you do that manually your symbols should be recognized. I had to delete and add it again to make it work for some strange reason.

If that doesn't work, I'm out of clues.... feel free to send me a private message and I can show you how it works on my computer via webcast.
ds1111 is offline  
Reply With Quote
Old 08-21-2012, 04:17 PM   #17
nono1976
Junior Member
 
Join Date: Aug 2012
Posts: 1
Thanks: 0
Thanked 0 times in 0 posts
Default C# Express Attach to process

Take a look at this tool vsxa2p, the trick is to look-up a file moniker registered in the ROT (running object table) as a EnvDTE.Solution object getting that object we can get the EnvDTE.DTE object, then all what we can do is to lookup the process we need to attach to using EnvDTE.Debugger. it's been tested on vs 2008 C# Express. you are free to change it to fit your needs.
download the source, compile it and use it as an external tool
nono1976 is offline  
Reply With Quote
Old 09-13-2012, 12:05 PM   #18
Jim W.
Senior Member
 
Join Date: Jul 2007
Posts: 126
Thanks: 9
Thanked 33 times in 20 posts
Default Instructions revised for VS 2010 Express and for NT7

Found the information for the broken link to NT Help for VS Debugging. The old link was to the NT V6 Help Guide. To find the Visual Studio Debugging Help information for your version of NT. In NT Control Center 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).

I 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 .

Note for those who do not read this whole thread: Edit should be done in file
NinjaTraderDebug.csproj not NinjaTraderDebug.csproj.user as is stated in first post in this thread started by yuvalw.
Last edited by Jim W.; 09-21-2012 at 01:18 PM.
Jim W. 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
NT & Visual Studio C# Express 2008 Tight Face Installation and Licensing 1 10-23-2008 02:50 AM
Visual C# Express Edition 2008 vs. NinjaScript editor Elliott Wave General Programming 4 04-07-2008 11:33 PM
What Versions of Visual Studio are supported? zoltran Historical NinjaTrader 6.5 Beta Threads 3 02-19-2008 08:00 AM
Using Visual Studio debugger SuzyG General Programming 1 12-21-2006 08:57 PM
Debugging using Visual Studio guym Indicator Development 2 11-28-2006 01:41 AM


All times are GMT -6. The time now is 06:41 PM.

FULL RISK DISCLOSURE: Futures trading contains substantial risk and is not for every investor. An investor could potentially lose all or more than the initial investment. Risk capital is money that can be lost without jeopardizing ones financial security or lifestyle. Only risk capital should be used for trading and only those with sufficient risk capital should consider trading. Past performance is not necessarily indicative of future results. View Full Risk Disclosure.