Hello community,
This question is about development / debugging D365 Retail CPOS / MPOS extension code.
Here is the technical background :
- Could hosted DevBox with administrator rights
- FinOps : Update 29 / 7.0.5372.35448
- RetailSDK : Version 10.0.197.10011
- I’m customizing the solution “CloudPOS.sln”
- To load the project “Pos.Web” I apply the procedure given in this article :
https://docs.microsoft.com/en-gb/dynamics365/retail/dev-itpro/cloud-dev-box
The “Pos.Web” project loads correctly:
- To load the project “Pos.Web” I apply the procedure given in this article :
Question n°1:
Does anyone know how can we load the "Pos.Web" project on a cloud hosted DevBox with administrator rights ?
I'm asking this because the only procedure that I found is marked as for DevBoxes without administrator rights.
- Development:
- Added a folder in “Pos.Extensions” project
- Added an extension for the “GetScanResultClientRequestHandler”.
- Added “manifest.json” file, modified “extensions.json” and “tsconfig.json” files.
- Compiled the whole solution, everything is OK.
Question n°2:
How should we debug POS extensions, by pressing F5 or by attaching to process (w3wP or iisexpress) ?
Question n° 3:
Should we put the break points in the .TS files or in the corresponding .JS files generated automatically ?
- Debugging:
I have tried debugging both ways, with pressing F5 (Google Chrome), and with attaching to process (w3p3 and iisexpress).
When use the attach debugger to process, I start the browser and log on to POS first, then attach to process.
Here are the results:- Debug with F5:
Everything starts smoothly, browser in POS application and VS in debugger, with break points full red.
The problem, no matter what I do break points never get hit. - Debug with attach to process:
The symbols for the break points in my extension never get loaded, thus break points never get hit.
- Debug with F5:
Questions n° 4:
Did anyone actually create a CPOS / MPOS extension and debug it with Visual Studio ?
If yes, could you please share some detail on how to achieve this “miracle” ? :-)
Thank you.
Kind regards,
Saso