Book a Demo

Author Topic: Debugging Model based Add-in  (Read 4907 times)

OpenIT Solutions

  • EA User
  • **
  • Posts: 555
  • Karma: +9/-1
    • View Profile
Debugging Model based Add-in
« on: November 10, 2020, 04:43:25 am »
Hi,

Just started looking at model based add-ins. Any recommendation on how to debug ? I can't put breakpoints in or compile/check syntax/coding errors - any advice on that one ? Finally i don't seem to get code assist in the behaviour view - again any advice on that one ?

All above make me think the way to go might be to create my code in a normal JavaScript script and test via a test harness, then include the script in my JavascriptAddin class somehow (any advice on that ?) and just call my pre-tested methods in the event handlers. 

Regards,

Jon.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Debugging Model based Add-in
« Reply #1 on: November 10, 2020, 05:42:33 am »
Yeah, you'll probably need to test your code with regular script code you can execute, and then hope for the best when they are supposed to be called by the EA events.

I have more or less the same issue with EA-Matic scripts.

Geert