AL icon indicating copy to clipboard operation
AL copied to clipboard

Debug without republishing of App

Open DmitryKatson opened this issue 9 years ago • 7 comments

Hi team, Is there any option to enable Debug option without F5 (republishing the app)?

If I use F5 then all data of my app is deleted and I cannot debug (cos I need to input all data once again).

DmitryKatson avatar Oct 02 '17 13:10 DmitryKatson

Unfortunately for now it is not possible to avoid data deletion when starting the debugger. We are working on a feature that will let you preserve the data on subsequent republishes if schema changes are compatible. See #62

StanislawStempin avatar Oct 05 '17 06:10 StanislawStempin

How is the recommended approach to provide these data needed for the development / debugging process?

Is there an event that could be subscripted in a codeunit to create the data e.g. in a test codeunit?

megel avatar Oct 10 '17 09:10 megel

Please check and support this feature soon. It is very very important for testing the extension. Currently, I'm testing my extension, but it is very difficult to track issues without debug tool.

hgnamvn avatar Nov 23 '17 03:11 hgnamvn

Personally I solved it (for now) by creating an automated "demo install" codeunit (subtype install), which publishes my test data. Takes time to do, but most of that is saved when it comes to build automated step. Wouldn't it be able to do almost the same with a .NAVDATA file? Thus we could save just save the current data, to reload them each time.

epernst avatar Nov 24 '17 17:11 epernst

Just ran this test in NAV2018, and it is failing. That means that all production data disappears when a debug is done, or a hotfix or update is loaded. Are there any workarounds for this, or at least a timeline for a fix?

At this point, we cannot use this functionality on any project without risking data loss.

bwdeleeuw avatar Dec 01 '17 21:12 bwdeleeuw

We are currently working on addressing this issue. We will target backporting the fix to NAV 2018.

StanislawStempin avatar Dec 06 '17 09:12 StanislawStempin

preserve the data on subsequent republishes if schema changes are compatible.

Will that consider the updgrade logic?

strophanthus avatar Dec 11 '17 22:12 strophanthus