1Ci Support Help Center home page
Submit a request
Sign in
  1. 1Ci Support
  2. 1C:Enterprise Platform FAQ
  3. Tips & Tricks

How to debug the Web Client

  • Tips & Tricks
    • How to take a DCS report to extension in order to modify its Data Composition Schema
    • Infobase data de-identification
    • How to use special characters in 1C:Enterprise Platform modules?
    • How to protect your custom functionality in an 1C:Enterprise configuration from being studied by others in the designer
    • Why do I get the "Data was changed or deleted by another user" error?
    • How to span a 1C:Enterprise window to two monitors with differing resolutions
    • How to limit form table dimensions in user forms
    • How to see the content of temporary tables in a query
    • How to setup and begin working with the 1C:Enterprise instant messaging functionality
    • How to debug the Web Client
See more

Question:

I need to debug code which is using web client specific functional such as asynchronous form behavior. How can I debug the web client?

 

Answer:

1C: Enterprise Platform allows for debugging of the web client. Assuming that you have already published your database to web server, you should take the following steps to debug the web client.

 

1- While in the designer,  Debug -> Attach for debugging… -> Settings… -> Debugger: Note the value here, it will be used in the second step.1.png

 

2- Administration -> Publish to web server… -> Other settings -> Debugging: Depending on the Debugger, choose Allowed (TCP/IP) or Allowed (HTTP).

3- Administration -> Publish to web server… -> Other settings -> Debugger address: Simply copy/paste here the value of Debugger from the first step.

2.png

 

4- While the designer is open, in the web browser address bar write the standard string for connecting to the database followed by a “?debug” string. After hitting Enter, just log in to the database with your user name and password.

3.png

 

5- While in the designer,  Debug -> Attach for debugging… : In the upper “Available debug items” table, you should be seeing the web client item. Double click on it so that it gets attached (appears in the lower “Attached debug items” table). Close the “Attach for debugging”  window.

4.png

 

6- That’s all, now the execution of the code should stop at the breakpoints.

© 2020-2022 1C INTERNATIONAL LLC www.1Ci.com Support policy