Visual Studio Express edition is free but It is not possible to attach to a process in Visual Studio Express edition. But there is a way to debug your ninjatrader scripts with express edition.
thx to this post: http://www.ninjatrader-support2.com/vb/showthread.php?t=15671 and http://stewartr.blogspot.com/2006/09...al-studio.html
STEPS
Open Visual Studio.
Create new console application project e.g. NinjaTraderDebug.
Save the project and close visual studio.
Go to the project directory and open with notepad the NinjaTraderDebug.csproj.user file.
Edit it to look like this (the bold lines is what I added, of course you need to put your path to NinjaTrader.exe).
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<StartAction>Program</StartAction>
<StartProgram>C:\Programme\NinjaTrader 6.5\bin\NinjaTrader.exe</StartProgram>
</PropertyGroup>
</Project>
Close NinjaTrader if it is opened.
Open the ninjatraderDebug project in VisualStudio.
Hit "Play" (F5), this will launch NinjaTrader and will attach to it.
Now do sections 1 and 3 from here: http://www.ninjatrader-support.com/H...l?VisualStudio
No comments:
Post a Comment