How do I do this in KDS??

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How do I do this in KDS??

Jump to solution
1,591 Views
dporada
Contributor III

I can't seem to get a couple of things to work in KDS that I used to use in CW10.  One of them is highlighting a variable, right clicking, and selecting "Open Declaration".  It seems like nothing happens. 

 

I also used to have variables I was watching update while the program is running.  I can't find an option to do this in KDS.

 

Any suggestions?

Labels (1)
0 Kudos
Reply
1 Solution
1,235 Views
BlackNight
NXP Employee
NXP Employee

Does it happen with a new workspace too?

Erich

View solution in original post

0 Kudos
Reply
8 Replies
1,235 Views
BlackNight
NXP Employee
NXP Employee

Hi Donald,

if F3/Open Declaration does not work for you, then this probably means that the Eclipse Indexer is not correct.

I recommend that you disable heuristics and rebuild the index, see http://mcuoneclipse.com/2012/03/20/fixing-the-eclipse-index/.

Watching variables while the target is running is a feature of CodeWarrior which is not present in KDS/stock gdb.

I hope this helps,

Erich

0 Kudos
Reply
1,235 Views
dporada
Contributor III

Erich,

I tried your suggestions with the same results. My Indexer window has more options than the one shown, but I set mine similar.

I can’t tell if anything is happening when I force a rebuild of the index. I don’t see any indication that the index is being rebuilt.

Any other suggestions? Will watching variables be a feature in the future?

0 Kudos
Reply
1,235 Views
BlackNight
NXP Employee
NXP Employee

Donald,

yes, that dialog looks differently in Eclipse Kepler. Below are my settings:

pastedImage_0.png

If you do a rebuild of the index, it is shown int the progress view:

pastedImage_1.png

I hope this helps,

Erich

0 Kudos
Reply
1,235 Views
dporada
Contributor III

OK, my settings are the same, but nothing happens when I rebuild the index.

0 Kudos
Reply
1,235 Views
BlackNight
NXP Employee
NXP Employee

Maybe this one helps:

http://www.oneminuteinfo.com/2012/08/tell-eclipse-to-rebuild-broken-index.html

I hope you have not used/mixed your workspace with different Eclipse versions?

Erich

0 Kudos
Reply
1,235 Views
dporada
Contributor III

No luck yet. I don’t have a file called “org.eclipse.dltk.core.index.sql.h2 “, and none get created.

0 Kudos
Reply
1,236 Views
BlackNight
NXP Employee
NXP Employee

Does it happen with a new workspace too?

Erich

0 Kudos
Reply
1,235 Views
dporada
Contributor III

Fixed it.

Somehow, my project was using the wrong workspace. The project wasn’t even in the workspace that KDS was using. I didn’t notice this until I tried making a new project.

Thanks for your help.

0 Kudos
Reply