Hello everyone,

I notice that many people are facing difficulties to debug an add-on using B1 on browser, the problem starts when the server is not the computer you are developing your application.

I would like to share how I could debug the add-on on another server, this is not really convenient but at least you can debug specific issues that you may have.

 

After developing your application, create the installer using the Extension Manager

If you don`t know how to create them, here some links to help you

How to Package and Deploy SAP Business One Extensions for Lightweight Deployment

Extension Package Tool and Extension Manager

You should install the add-on as you usual do and assign for the companies you want

 

Now, the tricky part

First, check if your server contains the Remote debugger, usually in this path (Check your Visual Studio version)

C:Program Files (x86)Microsoft Visual Studio 12.0Common7IDERemote Debugger

If your server doesn`t have it, copy the Remote Debugger and paste somewhere in your server

 

Run your msvsmon application as administrator according to your SO x64; x86

How to debug add-ons on Browser Access

How to debug add-ons on Browser Access

 

Open the B1 on browser and run your add-on, I used the “NEW UI DI Connection” sample, it comes with SDK installation

How to debug add-ons on Browser Access

 

Important: Open your add-on project as administrator

Find the sub-menu “Attach to Process” under “Debug” menu

How to debug add-ons on Browser Access

 

Find the add-on process in your server, don`t forget to set the server in the “Qualifier” field

How to debug add-ons on Browser Access

 

Now you finally will be able to debug

How to debug add-ons on Browser Access

 

The problem here is that every time you change anything in your code, you will need to install the add-on again, but I believe that this case should be used only to fix issues that you have on the browser, I wouldn`t do any full development using this way.

 

Please leave your feedback and if you have any suggestions on how to debug on browser, share with us as we all benefit from that.

 

That’s all, hope it helps.

 

Regards,

Danilo Kasparian

New NetWeaver Information at SAP.com

Very Helpfull

User Rating: Be the first one !