• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Blog

  • Facebook
  • LinkedIn
  • Twitter
MDT

MDT

Magik Development Tools

  • Product
    • Professional Edition
    • Administrator Edition
    • Annual Maintenance
    • Extensions
      • MDT 5J Extension
      • MStyle Plug-in
      • MUnit 3 Support
      • UML2 Modeler
      • Third-party Plug-ins
  • Features
    • Work with Magik
    • Debug Magik Code
    • Edit Magik Code
    • Browse Magik Code
    • Interact with GIS
    • Teamwork
    • Plug-ins
  • Licensing
    • Floating License
  • Customers
  • Training
    • Migration from Emacs
    • Tutorials
  • Support
    • FAQ
Request Demo Hire Consultant

Magik Code Debugger

Debug Perspective

Debug perspective is designed for debugging Magik programs. It includes a Magik editor area and a set of views which present aspects of the program being debugged. In standard configuration, when GIS session is started in debug mode and program is in breakpoint stage, the program execution is suspended and you are asked if you want to open the Debug perspective.

Debugging is possible only for Smallworld 4.1 and higher. Smallworld’s Virtual Machine simply does not support debugging in older releases.

Magik Stack Trace Console

A new type of a console has been added to MDT. The Magik Stacktrace Console displays a Magik stacktrace in a nicely formatted manner, with hyperlinks, which lead to the definitions of the stack trace line elements. You can paste stack trace from GIS console and follow created hyperlinks. A stacktrace content can also be edited.

Debug View

Debug View allows you to manage the debugging or running a program in the environment. 

It displays the stack frame for the suspended threads for each target that you are debugging. Each thread in the debugged program appears as a node in the tree. The view displays the process for each target being run. If the thread is suspended, its stack frames are shown as child elements.

Breakpoints View

Breakpoints View lists all the breakpoints that you have currently set in your workspace. Double-click a breakpoint to display its location in the editor (if applicable). You can also enable or disable breakpoints, delete them, add new ones, group them by working set, or set hit counts.

Variables View

Variables View displays information about the variables associated with the stack frame selected in the Debug View. While debugging a Magik program, variables can be selected to give more detailed information displayed in the Detail Panel. In addition, objects can be expanded to show slots that the variable contains.

Displaying logical structures in Debugger

New debugger Logical Structures feature allows to present alternate structures for common types in the debugger views. It is very useful in case of collection objects, you can easily access their contents without having to look into their implementations. Showing logical structures is accessible from different views and dialogs.

By default MDT provides logical views for basic collections. You can define more logical views for other types using Logical Structures preference page.

Expressions View

Data can be inspected in the Expressions View. You can inspect data from a scrapbook page, a stack frame of a suspended thread, and other places. The Expressions View opens automatically when an item is added to the view. Entries in the Expressions View can be selected to have more detailed information displayed in the Detail Panel. When debugging a Magik program, data that contain variables can be expanded to show the variables and the slots the variables contain.

Primary Sidebar

  • Welcome to MDT
    • Working with Magik
    • Magik Code Editing
    • Interacting with Smallworld GIS
    • Browsing Magik Code
    • Magik Code Debugger
    • Teamwork
    • Extend MDT using plug-ins
Need help with Smallworld?

The world's best Smallworld integrators and consulting firms use MDT to deliver powerful GIS solutions on time and on budget.

Hire Consultant

Footer

MDT – Magik Development Tools

Empower your Smallworld GIS development teams with the world's most advanced IDE for Magik.

sales@mdt.net

Product

  • MDT Pro Edition
  • MDT Admin Edition
  • Annual Maintenance

Features

  • Magik Debugger
  • Interacting with GIS

Training

  • Migrate from Emacs to MDT
  • MDT Training
  • MDT Tutorials
  • Facebook
  • LinkedIn
  • Twitter

© 2025 Rublon · Imprint · Privacy