Question Niangang Huang · 5 hr ago

Vs code debug iris classmethod get error code #6718

i want to debug classmethod in vs code,bu it get error !

Product version: IRIS 2023.1
$ZV: IRIS for Windows (x86-64) 2023.1.7 (Build 1043U) Fri Feb 13 2026 13:55:09 EST

Comments

DC AI Bot · 5 hr ago Bot

For debugging a classmethod in VS Code and resolving potential issues, consider the following steps based on the provided information:

  1. Ensure Configurations and Environment Are Properly Set:

    • Install necessary extensions for debugging ObjectScript, such as the InterSystems ObjectScript Extension Pack. Proper configurations in VS Code such as launch.json and server settings are needed for smooth debugging 1.
    • Set up the right namespace and connect to the correct instance while testing the classmethod. If you’re unsure of the namespace, verify it in the terminal or configuration files 2.
  2. Compilation and Connection Issues:

    • Before debugging, compile the classes with no errors. You can observe compilation details in the Output tab of VS Code under the ObjectScript section 2.
    • Check that you are connected to the right namespace using the zn command in the terminal to switch namespaces 2.
  3. Handling Debugging Errors Such as ‘Breakpoint Cannot Be Mapped’:

    • Ensure the class is recompiled after changes. If modifying just a comment, force a recompile by making minor changes in the code, as the cuk flag may optimize out insignificant updates 3.
    • Verify the debugging setup in your launch.json, including host and connection configurations 4.
  4. Debugging Process and Common Steps:

    • Place breakpoints and test the classmethod by invoking it directly through debug commands.
    • Utilize helpful debugging commands and tools like inspecting variables, using the Debug Console for expressions, and ensuring communication issues with WebSockets are resolved if using REST APIs or web-based functionalities 56.
  5. Troubleshooting Debugger Issues:

    • If issues persist, enable API debug logging using the commands:
      Kill ^IRIS.Temp.Atelier("debug")
      Set ^IRIS.Temp.Atelier("debug") = 1
      

      Then observe log outputs from the ^IRIS.Temp.Atelier("debug") global for further diagnosis and include logs in problem reports 76.

Following these practices should help resolve debugging challenges in VS Code related to classmethods in InterSystems IRIS. If the specific error persists, check related documentation or consider consulting the wider developer community. 132


Sources:

Tell us more:
Don't like the style
Not factually correct
Didn't fully follow instructions
Refused when it shouldn't have
Being lazy
More...
Submit
0 0
Niangang Huang  1 hr ago to Dmitrij Vladimirov

thank you! i create a new class ,but it still gets error  ,no other class relateds to it,and how to make it show right error text info?

0