Search tips

apple banana
Find rows that contain at least one of the two words.

+apple +juice
Find rows that contain both words.

+apple macintosh
Find rows that contain the word 'apple', but rank rows higher if they also contain 'macintosh'.

+apple -macintosh
Find rows that contain the word 'apple' but not 'macintosh'.

+apple ~macintosh
Find rows that contain the word 'apple', but if the row also contains the word 'macintosh', rate it lower than if row does not. This is "softer" than a search for '+apple -macintosh', for which the presence of 'macintosh' causes the row not to be returned at all.

+apple +(>turnover >strudel)
Find rows that contain the words 'apple' and 'turnover', or 'apple' and 'strudel' (in any order), but rank 'apple turnover' higher than 'apple strudel'.

Find rows that contain words such as 'apple', 'apples', 'applesauce', or 'applet'.

"some words"
Find rows that contain the exact phrase 'some words' (for example, rows that contain 'some words of wisdom' but not "some noise words").

By continuing to use this site you agree to the use of cookies. For more information and to find out how to change this click here. Accept Cookies
Please enable cookies in your browser for this website.
Advanced search

How to Enable Debugging for AI Script Projects

Last updated: 2020-01-15

The debugging mode can be useful for problem analysis. It offers you an easy way to analyze your problems, to step through your code parts and to support external Java libraries.

The following steps are necessary to enable the debug mode:

  1. Navigate to the DaVinCiCFG.exe folder

  2. Create a batch file for CFG5 debug mode startup
    • Create a new text document in this folder.
    • Name it e.g. StartCFG5WithDebugging.bat (attention a change of the file ending is necessary).
    • Open the new created file with a text editor (e.g. Notepad++).
    • Enter the needed commands to start configurator in debug mode.
      start D:\SIPS\CurrentUsedSip\external\DaVinciConfigurator\Core\DaVinciCFG.exe --enableDebugger 8001
    • Additionally you can add a project, which will be automatically opened after the start of CFG5. You can do this by adding the following parameter: 
      -p D:\SIPS\CurrentUsedSip\internal\AI_ScriptTestProject\AIProject.dpa
    • Both paths can be relative or absolut.
  3. Start CFG5 in debug mode
    • Right click on the new created .bat file and open it.
    • CFG5 will open in the debug mode.
  4. Start the debug mode in IntelliJ
    • Open IntelliJ with your script project.
    • Edit your run configurations
      • Open the run menu in the toolbar and select Edit Configurations.
      • Go to the remote item and change the port to the port you defined in your batch file. 

    • Click Apply and close the dialog.
    • Then choose the IntelliJ debug mode and start it.

  5. Understanding the interaction between IntelliJ and CFG5
    • Start CFg5 in debug mode.
    • Start your script project as described in point 4 with debug.
    • Set a break point in your script project.
    • Start the script in CFG5.
    • You can now see that the script holds at your break point.
    • In the debugger console you have now several options:

      • i.e. you can step over the break point,
      • you can step into it or
      • you can just resume the program and continue with the execution.
    • When the script is finished you can see this in the console in CFG5.
  6. Understanding the continuous build mode of IntelliJ
    • If not already started, start CFG5 in debug mode.
    • Instead of running the script project in IntelliJ, in build more or in debug mode, start it in continuous build mode.

    • Change something in your script project, e.g. add a println or change a println.
    • Saving the changes will now automatically build the script, so there is no need to build it manually.
    • After saving you can execute the changed script in the CFG5 and the changes will be executed.
Article Options
Views: 74
Rate this article: