cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

B1 Browser Access Debug

brunomilanez
Explorer
2,429

Esteemed developers,

I wonder if there is any way to debug an add-on when using the browser access of SAP Business One.

Can we connect to the browser access through Visual Studio?

And is there a different connection string for debugging purposes?

Any idea could be helpful.

Best Regards,

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member233854
Active Contributor

Hi Bruno,

I was trying to do it, the only way I could do was this below:

- Install your add-on on B1

- Attach your code on the add-on process running on the server

You will be able to debug

I have just post on the blog how to debug the add-on on browser

How to debug add-on on browser

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi,

Have you been able to check the 'Developer Tools' option for the same, if there is issue specific to Browser Access only?

Otherwise, open SAP Business One using Browser Access, run your Visual Studio Project and you should be able to use it normally.

Kind regards,

ANKIT CHAUHAN

SAP SME Support

former_member233854
Active Contributor
0 Likes

Hi Ankit,

In this case my server wasn`t the same I was running my source code. What 'Developer Tools' are you talking about?

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Danilo Kasparian,

I was talking about 'Developer Tool' option available in Chrome or Internet Explorer.

Kind regards,

ANKIT CHAUHAN

SAP SME Support

brunomilanez
Explorer
0 Likes

Hi guys,

The problem comes when we try to run a Visual Studio project, ANKIT CHAUHAN. It doesn't matter if the code is or isn't on the same machine running the BAS Gatekeeper service. When calling the method Connect of SboGuiApi passing in the connection string, an exception is thrown stating: "Connection - Could not find SBO that match the connection string". My dev environment has all of the SBO components on the same machine, including client and server components. Version is 9.2 PL 6.

The suggestion made by Danilo Kasparian does help, thanks for that, yet we need to keep packaging our code for debugging.

Best regards,

Bruno

Former Member
0 Likes

Hi Danilo,

I couldn't understand your answer. What do you mean by saying 'Attach your code on the add-on process running on the server'?

Thx

Haktan

former_member233854
Active Contributor

The visual studio has this option

former_member479647
Discoverer
0 Likes

Hi Danilo Kasparian,

I have instaled my add-on on B1 and I have atteched my code on process running on the server.

Consistently get a message in the breakpoints I set:

"The breakpoint will not currently be hit. No symbols have been loaded for this document."

I tried the following :

  • Run Visual Studio as administrator.
  • I have ensured debug configuration on 86bits, debug flag, and full debug info are set on all assemblies.
  • I have selected Start action on the projects to debug (Right click on solution --> Pxroperties -> Common Properties --> Startup Project -> Select multiple startup projects

Any ideas?

Thanks

Best regards

Yassine

former_member233854
Active Contributor
0 Likes

It was a long time I haven`t touch this anymore, I will do some tests again and I let you know

former_member233854
Active Contributor
0 Likes

I have just updated my first answer, I created a post for this subject.