Is it possible to debug into stepping the code lik
Author: Karthik
Creation Date: 4/15/2009 11:27 AM
profile picture

Karthik

#1
Hi,

Is it possible to debug the code line by line stepping the same way in Visual Studio debugging?

Thanks,
Karthik
profile picture

Eugene

#2
Sure, but not in the built-in editor. You would have to install a standalone IDE for that.

How can I debug my trading strategies in Wealth-Lab Pro 5?
Debugging a Strategy with Visual Studio Express or SharpDevelop
profile picture

Karthik

#3

as per this "How can I debug my trading strategies in Wealth-Lab Pro 5?" i'm trying to setup the environment,
but i coudlnt open the Wealth-Lab application it's giving this error
"WealthLabDev has encountered a problem and needs to close. We are sorry for the invonvenience".

I'm doing something wrong... let me tell you what i did so you have help to set the environment

As per this link "How can I debug my trading strategies in Wealth-Lab Pro 5?"

for step 6 here is my code

using System;
using System.Collections.Generic;
using System.Text;
using WealthLab;

namespace WL
{
public class TestStrategy : WealthScript
{
protected override void Execute()
{
throw new Exception("The method or operation is not implemented.");
}
}

public class TestStrategyHelper : StrategyHelper
{
public override string Author
{
get { throw new Exception("The method or operation is not implemented."); }
}

public override DateTime CreationDate
{
get { throw new Exception("The method or operation is not implemented."); }
}

public override string Description
{
get { throw new Exception("The method or operation is not implemented."); }
}

public override Guid ID
{
//get { throw new Exception("The method or operation is not implemented."); }
get { return new Guid("2E0EC1F6-1F50-4019-98DE-298D738D70F8"); }


}

public override DateTime LastModifiedDate
{
get { throw new Exception("The method or operation is not implemented."); }
}

public override string Name
{
get { throw new Exception("The method or operation is not implemented."); }
}

public override Type WealthScriptType
{
//get { return typeof(DailyBuyer); //Replace "DailyBuyer" with the name of your Strategy class }

get { return typeof(TestStrategy); }
}
}
}


as per Step 7
i have added the description as "Strategy Test by VS" and GUID as "2E0EC1F6-1F50-4019-98DE-298D738D70F8"

as per step 9
the output path is "C:\Program Files\MS123\Wealth-Lab Developer 5\"

now i have build the VisualStudio project without any error and it created the WL.dll in
the above mentioned output path. after that as per stope 12 running the Wealth Lab 5 and
getting this error "WealthLabDev has encountered a problem and needs to close. We are sorry for the invonvenience".


if i change the output path to any other location, then the Wealth Lab app is running but i dont
see the strategy which i want to debug in the Wealth-Lab application.

Can you help me what am i doing wrong here?


Thanks in advance,
Karthik
profile picture

Eugene

#4
What error message text do you get when expanding the error dialog?

QUOTE:
if i change the output path to any other location, then the Wealth Lab app is running


Are you sure? (Your Wealth-Lab Developer trial expired more than a week ago. Please consider trying out WLP5 because WLD5 isn't available to U.S. residents anyway.)

profile picture

Karthik

#5
Yeah my trail preiod expired a week back (sad part is i have started exploring the software last week only) currently playing with my colleague's system.

This is the error message getting it "WealthLabDev has encountered a problem and needs to close. We are sorry for the invonvenience".

BTW how to get the WLP5?
profile picture

Eugene

#6
When crash happens, there's an arrow in the error message dialog you can click to expand and get the debug information.

I would suggest you to download the source code for Strategies.ActiveTrader from our Wiki and compile it. If you place it to the above mentioned output path and try to debug, do you still get the error?

Here's the WLP5 free trial download link:
Download Active Trader Applications
profile picture

Karthik

#7
I have downloaded the source code and followed exactly the same way on that code, now the debugging is working.....

thanks a lot....

let me download the WLP5 and try it...