Version 5 vs 6
Version 5 vs 6
Edits
Edits
- Edit by Timotheos, Version 6
- Apr 14 2014 12:47 AM
- ·INSECURE
- Edit by Timotheos, Version 5
- Apr 12 2014 10:26 PM
- ·Added some of my findings for pretty printing... still not really working for me, but it should be helpful anyway.
« Previous Change | Next Change » |
Edit Older Version 5... | Edit Older Version 6... |
Content Changes
Content Changes
==NetBeans==
[[https://netbeans.org | NetBeans]] is a cross platform IDE. If you prefer using another IDE, feel free, but you may need to configure project settings yourself.
We are currently using version 8.0 so that is the supported version for project configurations at this time.
==Setting Up==
===Fixes for Ubuntu based systems (possibly others)===
====Allow Debugging Attachment====
Fix for `ptrace: Operation not permitted.` error message when attempting to attach debugger:
Set `kernel.yama.ptrace_scope = 0` in `/etc/sysctl.d/10-ptrace.conf`
gksudo gedit /etc/sysctl.d/10-ptrace.conf
As seen [[http://blog.mellenthin.de/archives/2010/10/18/gdb-attach-fails-with-ptrace-operation-not-permitted/comment-page-1/#comment-141535 | here]]; thanks to @0xSeanTasker for finding it.
====Better view of standard library containers in debug====
GDB might not be able to read standard library containers (`std::map`, et cetera) and some tweaks will need to be done to read them...
Follow the instructions on the GDB wiki to install the python pretty-printers for viewing STL containers: https://sourceware.org/gdb/wiki/STLSupport
Maybe also http://stackoverflow.com/a/13132091/423481
This only works with g++ 4.7, however. Check to ensure the compiler version is adequate:
g++ --version
To install the latest version, this should work (tested on [[http://stackoverflow.com/questions/12991401/how-to-install-gcc-4-7-2-on-linux-mint | Linux Mint 13]]):
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install g++-4.7 c++-4.7
Update `gcc` and `g++` to point to the new 4.7 versions (from [[http://askubuntu.com/a/26502 | here]]):
sudo su
rm /usr/bin/g++
rm /usr/bin/gcc
ln -s /usr/bin/g++-4.7 /usr/bin/g++
ln -s /usr/bin/gcc-4.7 /usr/bin/gcc
==Customisation==
===Keyboard Shortcut Mapping===
As most of us have a [[http://en.wikipedia.org/wiki/Job#Day_job|day job]], we are also required to use other tools that aren't quite as affordable as others (Visual Studio is $10K+ per license, other great IDEs are "free"). Visual Studio is a great IDE and due to its market dominance it is likely that programmers are familiar with the keyboard shortcuts. To make the transition to NetBeans as painless as possible, @0xseantasker took the time to map keyboard shortcuts to make them as similar as possible. The keyboard shortcuts are mapped as though Visual Studio + Visual Asset were in use. The following configuration files are available.
Visual Studio + Visual Assist key-map + suggested colours + misc settings {F53}
Visual Studio + Visual Assist key-map only {F54}
To use these, go to "Tools -> Options" and press the Import button to import the settings.
As of this writing, Netbeans 8.0 is also available. It is unknown if the configuration files are valid for Netbeans 8.0.
Using NetBeans 8.0 should not make any difference to your build output as the IDE is independent of the tools.
The only reason NetBeans 7.4 files are provided here is because it is the most recent tested version that is in use.
==NetBeans==
[[https://netbeans.org | NetBeans]] is a cross platform IDE. If you prefer using another IDE, feel free, but you may need to configure project settings yourself.
We are currently using version 8.0 so that is the supported version for project configurations at this time.
==Setting Up==
===Fixes for Ubuntu based systems (possibly others)===
====Allow Debugging Attachment====
Fix for `ptrace: Operation not permitted.` error message when attempting to attach debugger:
Set `kernel.yama.ptrace_scope = 0` in `/etc/sysctl.d/10-ptrace.conf`
gksudo gedit /etc/sysctl.d/10-ptrace.conf
As seen [[http://blog.mellenthin.de/archives/2010/10/18/gdb-attach-fails-with-ptrace-operation-not-permitted/comment-page-1/#comment-141535 | here]]; thanks to @0xSeanTasker for finding it.
====Better view of standard library containers in debug====
GDB might not be able to read standard library containers (`std::map`, et cetera) and some tweaks will need to be done to read them...
Follow the instructions on the GDB wiki to install the python pretty-printers for viewing STL containers: http://sourceware.org/gdb/wiki/STLSupport
(Maybe also http://stackoverflow.com/a/13132091/423481 but this wasn't necessary for me)
This only works with g++ 4.7, however. Check to ensure the compiler version is adequate:
g++ --version
To install the latest version, this should work (tested on [[http://stackoverflow.com/questions/12991401/how-to-install-gcc-4-7-2-on-linux-mint | Linux Mint 13]]):
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install g++-4.7 c++-4.7
Update `gcc` and `g++` to point to the new 4.7 versions (from [[http://askubuntu.com/a/26502 | here]]):
sudo su
rm /usr/bin/g++
rm /usr/bin/gcc
ln -s /usr/bin/g++-4.7 /usr/bin/g++
ln -s /usr/bin/gcc-4.7 /usr/bin/gcc
==Customisation==
===Keyboard Shortcut Mapping===
As most of us have a [[http://en.wikipedia.org/wiki/Job#Day_job|day job]], we are also required to use other tools that aren't quite as affordable as others (Visual Studio is $10K+ per license, other great IDEs are "free"). Visual Studio is a great IDE and due to its market dominance it is likely that programmers are familiar with the keyboard shortcuts. To make the transition to NetBeans as painless as possible, @0xseantasker took the time to map keyboard shortcuts to make them as similar as possible. The keyboard shortcuts are mapped as though Visual Studio + Visual Asset were in use. The following configuration files are available.
Visual Studio + Visual Assist key-map + suggested colours + misc settings {F53}
Visual Studio + Visual Assist key-map only {F54}
To use these, go to "Tools -> Options" and press the Import button to import the settings.
As of this writing, Netbeans 8.0 is also available. It is unknown if the configuration files are valid for Netbeans 8.0.
Using NetBeans 8.0 should not make any difference to your build output as the IDE is independent of the tools.
The only reason NetBeans 7.4 files are provided here is because it is the most recent tested version that is in use.
==NetBeans==
[[https://netbeans.org | NetBeans]] is a cross platform IDE. If you prefer using another IDE, feel free, but you may need to configure project settings yourself.
We are currently using version 8.0 so that is the supported version for project configurations at this time.
==Setting Up==
===Fixes for Ubuntu based systems (possibly others)===
====Allow Debugging Attachment====
Fix for `ptrace: Operation not permitted.` error message when attempting to attach debugger:
Set `kernel.yama.ptrace_scope = 0` in `/etc/sysctl.d/10-ptrace.conf`
gksudo gedit /etc/sysctl.d/10-ptrace.conf
As seen [[http://blog.mellenthin.de/archives/2010/10/18/gdb-attach-fails-with-ptrace-operation-not-permitted/comment-page-1/#comment-141535 | here]]; thanks to @0xSeanTasker for finding it.
====Better view of standard library containers in debug====
GDB might not be able to read standard library containers (`std::map`, et cetera) and some tweaks will need to be done to read them...
Follow the instructions on the GDB wiki to install the python pretty-printers for viewing STL containers: https://sourceware.org/gdb/wiki/STLSupport
(Maybe also http://stackoverflow.com/a/13132091/423481 but this wasn't necessary for me)
This only works with g++ 4.7, however. Check to ensure the compiler version is adequate:
g++ --version
To install the latest version, this should work (tested on [[http://stackoverflow.com/questions/12991401/how-to-install-gcc-4-7-2-on-linux-mint | Linux Mint 13]]):
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install g++-4.7 c++-4.7
Update `gcc` and `g++` to point to the new 4.7 versions (from [[http://askubuntu.com/a/26502 | here]]):
sudo su
rm /usr/bin/g++
rm /usr/bin/gcc
ln -s /usr/bin/g++-4.7 /usr/bin/g++
ln -s /usr/bin/gcc-4.7 /usr/bin/gcc
==Customisation==
===Keyboard Shortcut Mapping===
As most of us have a [[http://en.wikipedia.org/wiki/Job#Day_job|day job]], we are also required to use other tools that aren't quite as affordable as others (Visual Studio is $10K+ per license, other great IDEs are "free"). Visual Studio is a great IDE and due to its market dominance it is likely that programmers are familiar with the keyboard shortcuts. To make the transition to NetBeans as painless as possible, @0xseantasker took the time to map keyboard shortcuts to make them as similar as possible. The keyboard shortcuts are mapped as though Visual Studio + Visual Asset were in use. The following configuration files are available.
Visual Studio + Visual Assist key-map + suggested colours + misc settings {F53}
Visual Studio + Visual Assist key-map only {F54}
To use these, go to "Tools -> Options" and press the Import button to import the settings.
As of this writing, Netbeans 8.0 is also available. It is unknown if the configuration files are valid for Netbeans 8.0.
Using NetBeans 8.0 should not make any difference to your build output as the IDE is independent of the tools.
The only reason NetBeans 7.4 files are provided here is because it is the most recent tested version that is in use.