Skip to content
DataMiner DoJo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Empower Replay: Limited Edition
    • Tutorials
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • Agile
      • Agile Webspace
      • Everything Agile
        • The Agile Manifesto
        • Best Practices
        • Retro Recipes
      • Methodologies
        • The Scrum Framework
        • Kanban
        • Extreme Programming
      • Roles
        • The Product Owner
        • The Agile Coach
        • The Quality & UX Coach (QX)
    • DataMiner DevOps Professional Program
      • About the DevOps Program
      • DataMiner DevOps Support
  • Downloads
  • More
    • DataMiner Releases & Updates
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Can we Run a QAction in debug mode in a Production environment

Solved1.26K views6th October 2020protocol QAction
3
Jens Vandewalle [SLC] [DevOps Enabler]9.44K 2nd October 2020 0 Comments

According to the help you can compile a QAction in debug mode:

Which additional information will we see? Will this use more resources? Is this advised in a Production environment?

Jens Vandewalle [SLC] [DevOps Enabler] Selected answer as best 6th October 2020

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
4
Thijs Vanovenacker [SLC] [DevOps Advocate]2.21K Posted 2nd October 2020 3 Comments

Hi Jens, I believe the only advantage is that you get the line number where the exception is thrown. I'm not sure if this option will bring more load on the QAction or not (running in debug mode). So to be honest I wouldn't use it on a production environment.
Instead: if you define proper exception handling you should be able to easily spot where the issue comes from.

If you keep your exception handling consistent and always print the QAction ID, Method and full exception, this should be convenient to then troubleshoot for issues where needed. Good luck!

Pedro Debevere [SLC] [DevOps Enabler] Posted new comment 22nd October 2020
João Severino [SLC] [DevOps Catalyst] commented 2nd October 2020

Does this debug option also activate the DEBUG preprocessor directive?

Thijs Vanovenacker [SLC] [DevOps Advocate] commented 5th October 2020

Did a quick test and it doesn’t seem like the debug preprocessor is being enabled. (Tested by adding 3 log lines embeded with “debug”, “Debug” and “DEBUG”)

Pedro Debevere [SLC] [DevOps Enabler] commented 22nd October 2020

By default, the DataMiner compilation engine compiles with the optimization level option set to Release. When specifying the debug option, the DataMiner compilation engine compiles with the optimization level option set to Debug, which disables all optimizations (and instruments the generated code to improve debugging experience).
In addition, when using this option, next to the DLL, a program database file (.pdb) will be generated. This way, you get more information when exceptions occur (e.g. line number).

In Visual Studio, by default, the Debug solution build configuration has the “Define DEBUG constant” enabled.
However, DataMiner does not add this preprocessor directive automatically when using the debug option.

You are viewing 1 out of 1 answers, click here to view all answers.
Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin