Hi Marten,

I have no problem setting breakpoint in batch job in AX2009..
Have you sent the debug mode in the tools>Option development tab , debug mode = 
when breakpoint?

regards,
D' great




________________________________
From: r_ssh <ramamurthy.sant...@gmail.com>
To: Axapta-Knowledge-Village@yahoogroups.com
Sent: Friday, 3 April 2009 9:54:21
Subject: [Axapta-Knowledge-Village] Re: Ax 2009, problem with debugging batch 
jobs


Hi Morten,

As per my knowledge AX2009 has issue with batch debugging and we can use other 
way to crack the issue. You can just play around with code.

Try using "SysExceptionLog" class to know what is happening at the backend 
during batch processing. Any log can be written using the above class.

Here is the small example to showcase as to how we can play around if unable to 
debug a class thru batch.

In the AifInboundMsgProces s class, logState method we wanted to what userId is 
processed during inbound processing.
//Write a message to the event log
exceptionLog = new SysExceptionLog( );
exceptionLog. writeEntry( Exception: :Info, strfmt("AifInboundM sgProcess: 
:logState( ): recId: %1, EndpointUserId: %2", gatewayQueue. RecId, 
gatewayQueue. EndpointUserId) , _module); 

Thanks
Santosh.R

--- In Axapta-Knowledge- vill...@yahoogro ups.com, "morlopen" <morten.lopen@ 
...> wrote:
>
> Hello,
> 
> I am trying to debug a class while it runs as a batchjob on the AOS. This 
> does not work for me.
> 
> I have inserted a global breakpoint in the code using the breakpoint 
> statement. Then I start up the debugger and put the class in the batch queue. 
> The class is executed, but nothing happens in the debugger. I have tried 
> running the debugger on the client and also on the AOS server.
> 
> In the server configuration utility I have activated 'Enable breakpoints to 
> debug X++ code running on this server' and 'Enable global breakpoints to 
> debug X++ code running in batch jobs'. Have you experienced this problem?
> 
> Regards,
> Morten Løpen
>





      New Email names for you! 
Get the Email name you&#39;ve always wanted on the new @ymail and @rocketmail. 
Hurry before someone else does!
http://mail.promotions.yahoo.com/newdomains/sg/

Reply via email to