Ask Your Question
0

How do I debug basic code (macro) launched from within Base?

asked 2015-03-09 15:32:08 +0100

Jonte gravatar image

It seems like I'm missing something obvious here since this must be doable.

I have a Base project (.odb) where I want to make some custom macro functionality scripted in Basic. I need to get data from the various objects in the form to do some custom queries etc.

I have created a macro in Libre Office Basic, but I cannot debug it from within Base, the breakpoints are simply not active.

There must be a way to debug this right?

Any help would be really appreciated. Thanks -Jon

edit retag flag offensive close merge delete

Comments

Can you be more specific? I usually just set a button on the form to trigger an LO Basic event and test/develop that way.

doug gravatar imagedoug ( 2015-03-11 04:18:05 +0100 )edit

2 Answers

Sort by » oldest newest most voted
0

answered 2015-03-13 01:31:53 +0100

indavidjool gravatar image

Dear Jon, (Sorry could not resist that)

I'm a newbie so take that into consideration. I experienced the same thing. What worked for me was to keep the Macro Organizer open and it seems as if the code then gets halted when a call to a sub is made (focus does not change to the organizer so you have to go and check). Then you can step through your code or go to your breakpoints.

Hope that helps.

Regards

edit flag offensive delete link more
0

answered 2015-03-11 06:45:57 +0100

oweng gravatar image

Try using the --backtrace command line argument when launching LO. The log may reveal further detail.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2015-03-09 15:32:08 +0100

Seen: 556 times

Last updated: Mar 13 '15