Java, Eclipse Plugin Development and best software development practices
Saturday, March 21, 2015
Friday, March 20, 2015
Debugging an Installer Plugin
Step 1 : Configure your Xcode project
1 | Open your plugin project in Xcode. | |
2 | Choose Project > New Executable… | |
3 | Click Choose. | |
4 | Select Installer.app.
| |
5 | Click Finish. | |
6 | Choose Project > Set Active Build configuration > Debug. | |
7 | Choose Build > Build. |
Step 2 : Debug
1 | Add breakpoints in Xcode |
2 | Copy your plugin into the Plugins folder. |
3 | Choose Debug > Debug Executable in Xcode. |
4 | Open your package with Installer.app. |
Product->Scheme->Edit scheme ->
Wednesday, March 18, 2015
How to identify mac os Eclipse is 32 bit or 64 bit ?
These are the flags you can look at to identify whether your Mac Eclipse is 32 bit or 64 bit ?
Navigate to this menu:
Eclipse ->About Eclipse -> Click on "Installation Details" -> Click on "Configuration" tab->
And look for these parameters:
macosx
-ws
cocoa
-arch
x86_64
Navigate to this menu:
Eclipse ->About Eclipse -> Click on "Installation Details" -> Click on "Configuration" tab->
And look for these parameters:
macosx
-ws
cocoa
-arch
x86_64
Here x86_64 represents 64 bit eclipse.
For 32 bit eclipse, you will find only x86.
macosx
-ws
cocoa
-arch
x86
There are few more parameters that also represent the same.
org.osgi.framework.processor=x86-64
osgi.arch=x86_64
-ws
cocoa
-arch
x86
There are few more parameters that also represent the same.
org.osgi.framework.processor=x86-64
osgi.arch=x86_64
Upgrade node.js via npm
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
This will install the latest stable version.
If you want to install a specific version.
sudo npm n 0.10.34
This will install 0.10.34 version.
Just to cross check, use below command. This will print the installed version.
node -v
Tuesday, March 17, 2015
How to remove specific npm package from windows system
> npm rm -g <packagename>
Try even this.
>npm uninstall <packagename>
Try even this.
>npm uninstall <packagename>
Friday, March 13, 2015
Breakpoints are not working with Xcode 6
There are many reasons for this.
Please check this:
http://stackoverflow.com/questions/64790/why-arent-my-breakpoints-working
In my case what worked for me is:
Click on the Xcode project-> Build Settings ->Build Options -> set "Debug Information Format" as "DWARF with dSYM File".
This is in Xcode 6.1
Please check this:
http://stackoverflow.com/questions/64790/why-arent-my-breakpoints-working
In my case what worked for me is:
Click on the Xcode project-> Build Settings ->Build Options -> set "Debug Information Format" as "DWARF with dSYM File".
This is in Xcode 6.1
Thursday, March 12, 2015
Removing node.js and npm from mac os x
- Go to /usr/local/lib and delete any node and node_modules
- Go to /usr/local/include and delete any node and node_modules directory
- check your Home directory for any local or lib or include folders, and delete any node or node_modules from there
- Go to /usr/local/bin and delete any node and npm executable.
- If you have installed in any other custom directory, please remove that as well.
Use below command to remove recursively.
>sudo rm -rf node
>sudo rm -rf node_modules
rm -rf /usr/local/{lib/node{,/.npm,_modules},bin,share/man}/{npm*,node*,man1/node*}
Subscribe to:
Posts (Atom)