1c does not work debugging on the client. What it looks like now.

  • 23.07.2014

    Features of operation SQLServer 2005-2008 for 1C-Enterprise 8.Filed under: 1C

  • Manage PCs and mobile computers with VMware Mirage 03/13/2013

    Manage PCs and mobile computers using VMware Mirage.Filed under: 1C

  • An example of setting up a technological journal 1С 24.08.2012

    The technology journal can be kept on any computer on which there is an installation of the 1C: Enterprise 8.2 system. The maintenance of the technological log is the responsibility of the configuration file, which describes: · the directory in which the technological log files will be located; · The composition of the information that will be placed in the technology journal; · Time [...]

    Debugging this method can sometimes help you get away, but, in fact, professional developers, like you and I, use debugging tools to debug our applications. It is also recommended that you have an Internet connection for the licensing process. If you do not have an Internet connection on the license manager's computer, you can select the authorization option by email or on the website in the "Authorization Method" panel.

    Automatically allow licenses

    Perform the following steps to install, authorize, and launch the license manager. This file fills in all the necessary information about the product and user permissions in the wizard. For more information about provisioning files, see the section called “Providing Files”. Click Finish to close the wizard and return to the license manager. . This knowledge base article contains additional information.

    Authorize offline licenses

      If the computer hosting the license manager does not have access to the Internet, you can complete the authorization process offline.

  • 23.08.2012

    You can configure the launch of the 1C client in the 1C launch dialog box using the “Configure” button. If you uncheck the “Use hardware license” checkbox, then 1C will first look for a software key and vice versa, if it is installed, the hardware key will be searched first. You can read about hardware keys here Hardware security key In 1C information about receiving [...]

    Upgrade licenses from versions 1 to 3 to version 1

    After running the Software Authorization Wizard, as described in step 4 above, follow these steps. Follow the instructions in the remaining dialogs and save the authorization request file when Specified at the end. Follow the instructions in the last dialog box to send or download a file from your computer with email or Internet access. Save this file in the license manager and restart the software authorization wizard in the license server manager.

    Update software license manager versions from 1 to 3 to version 1

      However, client software running on version 1 must use version 1 of the license manager.

  • Calculation of parameters of the terminal server for 1C: Enterprise 8 06.07.2012

    1. It is necessary to determine how many servers will be used. With a large number of users, it is recommended to install 1C: Enterprise server and MS SQL Server on different computers of approximately the same capacity. With a small number of users can be installed on one computer. The recommended speed of the communication channel between the 1C: Enterprise Server and the SQL Server […]

    Upgrading software and old licenses from version 0 to version 1 or newer

    This allows you to significantly simplify the process of updating licenses from licenses 0 to licenses 1 Instead of prohibiting licenses from previous versions and allowing the latest version, users can convert their current 0 licenses to 1-3 using a one-step update.

    You can also upgrade your license by discarding the existing version 0 license and allowing new licenses for versions 1. For information about your local dealer, visit the following. But not everyone will know what is behind the two tools. Both tools need each other.

  • Where can I use multi-user software licenses 1C 06.07.2012

    This article moved to a new address: Where can I use multi-user 1C software licenses? Types and marking of 1C protection keys What is a 1C protection software key How to change several 1C protection keys for one 1C protection keys Where to see the 1C license key : 1C, Protection keys 1C v.8, HA [...]

    Two tools that serve little for other users, but work well for what is used. This is a client-server tool that connects your development device to your computer. Thus, through the command line, we can perform actions on the device.

    The server is responsible for managing the communication between the client and the daemon. . You can do a lot. Development-oriented tool. We install the program as any program. Sets the assigned runtime parameter. Most of the other command line parameters are actually short forms for assigning these parameters.

  • Features of operation SQLServer 2005-2008 for 1C-Enterprise 8 02.07.2012

    All admins are divided into those who still do not make backups and those who already make backups. One of the most common reasons for the system’s non-optimal operation is improper or untimely performance of routine operations at the DBMS level. It is especially important to carry out these regulatory procedures in medium and large information systems that operate under the […]

    The higher this value, the more debug output will be recorded in the server log. Specifies the location of the data directory and configuration files in the file system. In Section 1. Before using this option, carefully read the documentation! Without this option, only local connections are accepted.

    Sets the maximum number of client connections accepted by this postmaster. If the option string contains spaces, the entire string must be enclosed in single quotes or quotation marks. Using this key discards all log output, which is probably not desirable because it makes troubleshooting difficult.

  • Freeing the memory occupied by the 1C server on the fly 01.06.2012

    You can restart the 1C service, but this can lead to the fact that user sessions that work with data will crash. It is possible to restart the application server workflows without completing user work. To do this, in the server console, select the process that occupied the most memory and open its properties. In the properties of percents [...]

    Two additional command line parameters are available for debugging problems that cause abnormal server shutdown. A common strategy in this situation is to notify all other server processes that they must complete, and then reinitialize shared memory and semaphores. This is due to the fact that the process of the problem server can cause damage to any general condition before completion. None of these options were used for normal operation.

    The mail wizard does not reinitialize general data structures. A system programmer with relevant knowledge can then use the debugger to examine the state of shared memory and semaphores. When you run your script, certain problems arise. The problem is that not everything is so obvious, therefore some basic strategies for their placement will be described on this page.

  • How to remove passwords of 1C users if the base is on SQL Server 05.30.2012
  • Untitled 28.05.2012

    Originally posted on System Administrator's Blog: Lists of common information databases are files with the extension “v8i”, which contain links to common information databases. You can open the list settings dialog from the 1C: Enterprise 8 startup window by clicking the Settings button. Using the 1C: Enterprise 8 startup window settings dialog, you can specify [...]

    Remember that in order to activate it, you must have administrator permissions. 1: shows only errors 2: errors and warnings 3: errors, warnings and informational messages. In most cases it is recommended to use a level 3 or level 2.

    Also solve other possible problems. When this script is loaded, the console will look something like this. This means that the script cannot be executed, because there is a syntax error. In this message, the script first appears, from which the function posed a problem. After that, there are two points and a number showing the line where the error is located; To facilitate the work of the programmer when it comes to large scripts. The message will vary depending on the type of error.

8 there is a need (as mentioned below) to significantly rework the debugging procedure. This is reflected in version 8.3.7.1759. Firstly, a universal interface was created for this procedure, and secondly, such a change ensures the further development of the program itself. After all, now with debugging you can work not only through the Configurator, but also with the help of Development Tools. Consider how to enable debugging on the server 1C starting with the new version.

Now everything will be loaded successfully, and no error will appear until the player who received the nickname “Bow” says nothing in the chat. Obviously, this is just an example and will not always be so, because in some cases there are several types of errors. But so far a good foundation has been started.

Client and server debug logs

This is very useful for those who are interested in setting up a dedicated server or even when trying to remake a real server.

  • This is a quick way to run a test server inside the program itself.
  • When the user closes the game, he automatically shuts down.
Depending on your needs, you can change these settings below.

Use of new protocol

The previous debugger, which was implemented in previous versions, managed client and server applications using the TCP / IP protocol.

Currently, the use of such a protocol has begun to limit the output of the 1C: Enterprise program to the Internet and has caused inconvenience for the operation of mobile applications.

As mentioned above, it is not necessary to save the log file in accordance with the desired level. This value is already set by default, so no configuration is required. Instead of searching for errors in the code, there are a few things that will help you find them. Most of them are associated with the addition of some debugging message about what is happening in the script.

Add debug messages to check when or at what frequency the code is executed

The functions below can assist you in debugging. It is very useful to know what she wrote on the screen. . If you have finished writing code, and you understand that the expected does not occur, and you doubt whether the instructions were followed or not; In this case, it is recommended to add debugging messages to check the steps.

Therefore, for free access to information databases that may be outside the local grid, the flexible HTTP protocol has now been adopted.

New architecture

Previously, when performing configurator debugs, the employee had to connect to the infobase. To do this, you need to give it administrator rights.

Add a debug message to check the value of a variable

Another similar way would be to check if any variable changes. In other words, simply add a debug message after each time it happens. Suppose you want to create a bookmark, but it does not appear in the expected position. After that, we just need to check the values ​​used in it. Once this is done, the variables used as coordinates will be displayed.

Imagine that you created a collision detector, and if a player remains in it for ten seconds, something will happen. To fix this, we need to check if there is a table, and if the answer is yes; We will create it. In addition, everything is working fine.

In the new version in direct connection with the databases there is no need - just enough to have the same base as the client. And you can download it from a file.

Mobile applications

Using HTTP, it is now possible to debug server data, client, and applications.

Other changes

With the new version, a change in the values ​​for local variables is available in the debugging procedure — a new quick view window has been implemented for this purpose.

Therefore, we added a debug message to check this. Now you can make sure that the functions are performed twice when we enter the vehicle, but only once when you go. It is possible that the vehicle is a separate element and activates the function independently of the player. To validate this theory, we check whether a player variable really applies to a player.

The debug message tells us that the link to the variable player is actually a player, but the other is the vehicle. Since we have highlighted the event specifically for his puppet, add if n, forcing the end of the implementation of the variable, if the code is not a player.

The calculation mode is changed to asynchronous, allowing you to continue working without waiting for the results.

Development Tools Debugger

Interaction with the new procedure is performed in a specially designed universal software interface. On the one hand, this interface is used by the Configurator. On the other hand, it is implemented in the new 1C: Enterprise Development Tools environment.

Now everything works as planned, but this warning message, mentioned above, still appears. In other words, the timer is automatically destroyed when it counts 10 seconds. There are several ways to get rid of the warning, since we know about the existence of a timer.

Check for performance problems

It would be possible to check if it exists in the table. Then the full code looks like this. If your server is running too much, or you want to make sure your scripts are efficient, you can nip the problem in the bud using a good tool included in the installation. If it does not exist, it can be found in the latest resource pack.

What it looks like now

After changing the program, the procedure occurs according to the following scenario:


Now not only the debugger and items are involved in it, as it was before. Now an additional element is added to the chain - Server.

Not only is it added - it serves as the main element of information exchange between the debugger and the items. And the exchange itself takes place through queued messages.

Examples of problem scenarios

This tool includes a number of performance related data such as. You could add data to some table, but later did not delete it. However, in order to spoil the server, it will take several months or even years. One of the possible cases of leakage of an element is the creation of temporary colliders and their further destruction.

Within 24 hours it can cause serious damage. This is due to the fact that he will also tell you about the line in which the problem code is located. A list of connected devices. How to determine the manufacturer. Right-click on this device and select "Properties."

And since this exchange takes place via the HTTP protocol, it now does not matter where the data can be located.

Calls to the server are generated from the debugger and items in the form of additional connection requests. When they appear, they are sent the appropriate answers.

Enable debugging under different scenarios

There are no changes for the application developer. A significant difference is that a new mechanism is required to be included. After all, by default it is now disabled.

Consider what happens when you start the mode if we choose one of two scenarios.

File script

At the beginning of the file variant, it is necessary to indicate in the configurator settings the use of the new mechanism - “Debugging via the HTTP protocol”.

Then, from the side of the Configurator, it will automatically be offered to use a local server. This condition must be accepted and restarted in the Configurator mode.


After this, the newly launched Configurator will save the new method chosen by us at the next session. But for the same information base. Therefore, when accessing another infobase it is also required to be included.

The enabled mechanism will now automatically start the Debugger Server, which is a special application dbgs.exe. It is reflected in the Task Manager window.

The value of the ownerPID parameter will correspond to the application identifier that is associated with it.

When you start a debug session through the Configurator - the server connection will occur automatically. And it will affect the connected objects.


If the 1C program was activated without a new mechanism, then you need to enable debugging on the 1C server manually. Only now have to specify the server address:


Go to Tools - Options

It is located in the settings of items:


Go Connection - Setup

When using a file script with several databases, you need to take into account an important nuance at the same time - each of the Configurators (with the mechanism enabled via HTTP) sends its own Server:


Therefore, if several Configurators are open, then to connect the Client, you need to specify the correct one.

Client-server script

Debugging on the server 1C in a client-server scenario, as in the previous case, begins with the launch of the mode. This indicates the use of the new HTTP mechanism. This is done in this way:

ragent.exe -debug -http

When it starts, the debugger starts automatically after it.

The value of the ownerPID parameter will correspond to the identification number of the 1C cluster manager.

The program will form a proposal to use the cluster debug server now (rather than local as in the previous scenario). We agree and restart it.

In the future, everything will be like a file script. Only when starting the Server Base Configurator the local server debugger will not start anymore.

We hope that our publication helped you to deal with the problem of how to enable debugging on the 1C server.

Ask questions, share your experience, leave comments.

Continuing the theme:
Solutions

The question of clearing the cache has been raised many times in the environment of users of 1C programs, but over time it does not become less relevant. The situation is common when ...