• AVR Freaks

Helpful ReplyHot!Automatic display of variables in watch window, and very slow debugging in MPLABX

Page: < 12 Showing page 2 of 2
Author
MartinDJohnson
Starting Member
  • Total Posts : 31
  • Reward points : 0
  • Joined: 2012/06/01 03:53:56
  • Location: 0
  • Status: offline
Re:Automatic display of variables in watch window, and very slow debugging in MPLABX 2012/11/30 09:49:28 (permalink)
0
Possibly a better approach would have been to use eclipse ide rather than base MPLABX on Netbeans Ide.
Eclipse works pretty well (ive used it on arm with GDB).
 
Its a shame we cant have some kind of simular thing on the PIC where the debug tools just interface to GDB.
Much less software for Microchip to maintain, and would still be platform independent... Just a thought anyway... [8)]
 
#21
wrljet
New Member
  • Total Posts : 20
  • Reward points : 0
  • Joined: 2011/08/17 13:29:49
  • Location: 0
  • Status: offline
Re:Automatic display of variables in watch window, and very slow debugging in MPLABX 2012/11/30 09:52:26 (permalink)
0
Freescale's new CodeWarrior versions are Eclipse based.  I hate it and am still using the old classic versions.
NetBeans seems better to me.  (until you go to debug)
 
#22
Guest
Super Member
  • Total Posts : 80500
  • Reward points : 0
  • Joined: 2003/01/01 00:00:00
  • Location: 0
  • Status: online
Re:Automatic display of variables in watch window, and very slow debugging in MPLABX 2012/12/13 01:06:29 (permalink)
0
Slow watch update effect do not independent from any kind of emulators. Same effect  in the simulator mode. But I'm noticed if used alternative watch view, variables showed faster after debug step
#23
MartinDJohnson
Starting Member
  • Total Posts : 31
  • Reward points : 0
  • Joined: 2012/06/01 03:53:56
  • Location: 0
  • Status: offline
Re:Automatic display of variables in watch window, and very slow debugging in MPLABX 2012/12/13 06:07:48 (permalink)
0
I have recently re-tried my ICD3 on MPLABX 1.5.1...
The debugging is quite a bit faster although there still seems to be random USB related errors requiring that the USB be re-plugged. It gets pretty annoying after a while.
I hadnt actually realised that there was a watch view as well as a variables / watch view. Smile
Using the watch view and closing the variables window is better although it still seems much slower than it should be.
#24
Ed@BGM
Senior Member
  • Total Posts : 99
  • Reward points : 0
  • Joined: 2004/03/03 14:52:47
  • Location: Shelby Twp., Mi
  • Status: offline
Re:Automatic display of variables in watch window, and very slow debugging in MPLABX 2012/12/13 13:22:22 (permalink) ☄ Helpful
+2 (1)
Increasing the amount of memory available to MPLAB X greatly increases the debugging speed. 
 
You need to edit the file /etc/mplab_ide.conf
I set my default options line to allow double the default memory levels:
default_options="-J-Dnb.FileChooser.useShellFolders=false -J-Xms512m -J-Xmx1024m -J-XX:PermSize=256m -J-XX:MaxPermSize=768m -J-XX:+UseConcMarkSweepGC -J-XX:+CMSClassUnloadingEnabled"
 
I good description of the what each parameter does is here:
http://performance.netbeans.org/howto/jvmswitches/
 
To greatly increase compiling speed, go to the Tools Pull-Down Menu and select Options. Then select the Embedded icon, followed by the Project Option tab. Finally select the “Use parallel make”.
 

BGM Engineering, Inc.
Microchip Gold Level Design Partner
#25
MartinDJohnson
Starting Member
  • Total Posts : 31
  • Reward points : 0
  • Joined: 2012/06/01 03:53:56
  • Location: 0
  • Status: offline
Re:Automatic display of variables in watch window, and very slow debugging in MPLABX 2012/12/14 01:30:39 (permalink)
0
Thanks very much for the info, Im already using the parallel make option, but was not aware that increasing the available memory to MPLABX will speed up the debug.
 
I will give the conf file a tweak to increase the memory and see how it goes [8)]
 
Thanks Again !
 
#26
MartinDJohnson
Starting Member
  • Total Posts : 31
  • Reward points : 0
  • Joined: 2012/06/01 03:53:56
  • Location: 0
  • Status: offline
Re:Automatic display of variables in watch window, and very slow debugging in MPLABX 2012/12/15 01:29:32 (permalink)
0
Wow, adding the extra memory into the config file seems to have really improved some things [8)]
 
The debug is much faster and does not seem anymore to re-read data it already should have when the watch or variables window is scrolled. Stepping through code is also much faster.
Another odd thing is that I have also noticed that the communication with the ICD3 works reliably now, where before I needed to unplug and replug the usb due to random usb errors, which again may have been memory related.
 
#27
drazen
Super Member
  • Total Posts : 2847
  • Reward points : 0
  • Joined: 2003/11/07 12:43:09
  • Location: Croatia
  • Status: offline
Re:Automatic display of variables in watch window, and very slow debugging in MPLABX 2012/12/15 04:42:11 (permalink)
0
I think MC MUST put such info in X, or better, make a GUI to modify hidden values with good explanation about each. After installation will be nice to ask user to modify those settings or in installation choose between fast or memory conservative settings.
#28
Charlie E
Junior Member
  • Total Posts : 72
  • Reward points : 0
  • Joined: 2009/08/24 14:20:00
  • Location: 0
  • Status: offline
Re:Automatic display of variables in watch window, and very slow debugging in MPLABX 2012/12/15 10:11:04 (permalink)
0
Unfortunately, when I tried this on my machine, I get an error of "Unable to open JVM"  (that is Java Virtual Machine).  I guess they have the setting they do because some machines don't have enough memory to run in more!
#29
Guest
Super Member
  • Total Posts : 80500
  • Reward points : 0
  • Joined: 2003/01/01 00:00:00
  • Location: 0
  • Status: online
Re:Automatic display of variables in watch window, and very slow debugging in MPLABX 2013/02/15 02:35:59 (permalink)
+2 (1)
THANKS HEAPS !!!!!
THIS SAVES ****DAYS*** OF WORK TIME !!!!!!
 
Michael
#30
dlindbergh
Super Member
  • Total Posts : 478
  • Reward points : 0
  • Joined: 2006/09/11 18:17:11
  • Location: Boston USA
  • Status: offline
Re:Automatic display of variables in watch window, and very slow debugging in MPLABX 2015/05/16 15:42:28 (permalink)
0
E Burley
Increasing the amount of memory available to MPLAB X greatly increases the debugging speed. 

You need to edit the file /etc/mplab_ide.conf
I set my default options line to allow double the default memory levels:
default_options="-J-Dnb.FileChooser.useShellFolders=false -J-Xms512m -J-Xmx1024m -J-XX:PermSize=256m -J-XX:MaxPermSize=768m -J-XX:+UseConcMarkSweepGC -J-XX:+CMSClassUnloadingEnabled"

That was 3 years ago.
 
Anybody know if this is still necessary/useful as of MPLAB X v3.00?
#31
dlindbergh
Super Member
  • Total Posts : 478
  • Reward points : 0
  • Joined: 2006/09/11 18:17:11
  • Location: Boston USA
  • Status: offline
Re:Automatic display of variables in watch window, and very slow debugging in MPLABX 2015/06/24 10:47:51 (permalink)
0
Ping. Anybody? (As of 3.05 now?)
#32
lelsteph
Super Member
  • Total Posts : 398
  • Reward points : 0
  • Joined: 2008/09/17 05:10:00
  • Location: 0
  • Status: offline
Re:Automatic display of variables in watch window, and very slow debugging in MPLABX 2019/11/06 05:21:50 (permalink)
+1 (1)
Still the same nightmares today: very slow especially when the project is getting very big and still that double refresh issue (BTW erasing the changes red values.....). This is really a challenge to do good debugging and quality code!
I wonder when Microchip will find a real solution.
Steph.
#33
Page: < 12 Showing page 2 of 2
Jump to:
© 2019 APG vNext Commercial Version 4.5