Hi,

Thanks for your reply. I have now also heard from others that there is an issue 
with batch debugging, so I guess I will have to manage without it right now.

I have not used the SysExceptionLog, but I have created my own simple log table 
with a method for creating new entries. I then call this method from the code 
that I want to investigate.

Regards,
Morten Løpen

From: Axapta-Knowledge-Village@yahoogroups.com 
[mailto:axapta-knowledge-vill...@yahoogroups.com] On Behalf Of r_ssh
Sent: 3. april 2009 03:54
To: Axapta-Knowledge-Village@yahoogroups.com
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 AifInboundMsgProcess 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("AifInboundMsgProcess::logState(): recId: %1, EndpointUserId: %2", 
gatewayQueue.RecId, gatewayQueue.EndpointUserId), _module);

Thanks
Santosh.R

--- In 
Axapta-Knowledge-Village@yahoogroups.com<mailto:Axapta-Knowledge-Village%40yahoogroups.com>,
 "morlopen" <morten.lo...@...> 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
>


________________________________
Capgemini is a trading name used by the Capgemini Group of companies which 
includes Capgemini Norge AS, a company registered in Norway (number 943574537) 
whose registered office is at Hoffsveien 1 D - Pb. 475, Skøyen - 0214 Oslo.
</PRE><p style="font-family:arial;color:grey" style="font-size:13px">This 
message contains information that may be privileged or confidential and is the 
property of the Capgemini Group. It is intended only for the person to whom it 
is addressed. If you are not the intended recipient, you are not authorized to 
read, print, retain, copy, disseminate, distribute, or use this message or any 
part thereof. If you receive this message in error, please notify the sender 
immediately and delete all copies of this message.</p><PRE>

Reply via email to