Debugging with Task Scheduler

In Dynamics NAV 2017 we got the new Task Scheduler to replace NAS.
But Task Scheduler don’t use a normal session for execution, so it does show up in the Session List. So how do you debug a running session from Task Scheduler.

Put a breakpoint in your Codeunit.
1
Open Debug Session as normal, and click the Debug Next button, and wait until it fires.
2

Start debugging
3

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s