Testing extension development

Bob B's Avatar

Bob B

01 Feb, 2025 07:28 PM

I'm writing and testing an extension, when debugging I would like to run the extension as soon aş the app starts from the Intellij debug mode. I found this paramter

-invoke=QuickenConverter

(QuickenConverter is the name of my extension) that seems like it should do the trick but it doesn't seem to do anything. There's probably a trick to this that I haven't learned yet. If anyone could help, I'd appreciate it.

  1. 1 Posted by Stuart Beesley ... on 01 Feb, 2025 10:38 PM

    Stuart Beesley (Mr Toolbox)'s Avatar

    A couple of questions...

    1. The extension will be automatically installed when MD starts anyway and it's init/initialise method called... You could jump off that.. OR, do you want it to wait for an invoke() or handleEvent() call? if so, then....:

    2. you need to execute MD like this:

      -invoke=moneydance:fmodule:quickenconverter:yourparameterhere
      
      (note: the extension ID should be defined and called in lowercase.

    Then either handleEvent() or invoke() should get called (I can't remember which)..

    You will need to check that the dataset is loaded and the GUI loaded before doing anything.. It's typical for an extension to 'idle' until a AppEventManager.FILE_OPENED event is received...

  2. 2 Posted by Stuart Beesley ... on 01 Feb, 2025 10:42 PM

    Stuart Beesley (Mr Toolbox)'s Avatar

    ... you will have to play with this and ensure that the system is in the right state when the extension is invoked...

    There is also a

    -invoke_and_quit=
    
    parameter too, but again, this is quit fiddly to get right...

    If you dataset has a password, you can set the environment variable:

    md_passphrase=yourpassword
    
    before launching MD

    The other useful parameters are:

    useyourdatasetname

    before any other options/parameters and

    -nobackup
    

    to not backup when MD quits.

  3. 3 Posted by Stuart Beesley ... on 08 Feb, 2025 04:48 PM

    Stuart Beesley (Mr Toolbox)'s Avatar

    Did any of these parameters help?

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac