THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block |
---|
export GLOG_logtostderr=1 |
Call Trace
Sometimes you may want to know how the code path comes into a function. In the backend, you can add some logs for GetStackTrace():
Code Block |
---|
VLOG_QUERY << "args: " << your_interested_var << std::endl << GetStackTrace(); |
Make sure "util/debug-util.h" is included in your file.
In the frontend, you can add some logs for a generated Exception:
Code Block |
---|
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class YourInterestedClass {
private final static Logger LOG = LoggerFactory.getLogger(YourInterestedClass.class);
public void yourInterestedFunc() {
...
LOG.info("some message", new Exception("call trace"));
...
} |
Existing Hadoop Installations
...
- vim
- https://github.com/Valloric/YouCompleteMe. Smart completion, including understanding C++ code and highlighting errors.
- Install Vundle by following instructions at https://github.com/VundleVim/Vundle.vim
- Install the YouCompleteMe Vim plugin with the following steps.
- Add plugin to .vimrc in the Vundle section:
Plugin 'Valloric/YouCompleteMe'
- Run
vim +PluginInstall +qall # from the command line
- Finish compiling YCM with clang support:
cd ~/.vim/bundle/YouCompleteMe
./install.sh --clang-completer
- Add plugin to .vimrc in the Vundle section:
- eclim. Eclipse integration
- clang_complete (an alternative to YouCompleteMe)
- https://github.com/Valloric/YouCompleteMe. Smart completion, including understanding C++ code and highlighting errors.
- Eclipse
- NetBeans
...
Starting Minicluster with SSL
...