Version: 8.3.0
YacsTrace.cxx File Reference
#include <iostream>
#include <sstream>
#include "YacsTrace.hxx"
#include <cstdlib>
#include <unistd.h>
Include dependency graph for YacsTrace.cxx:

Go to the source code of this file.

Namespaces

namespace  YACS
 

Functions

void AttachDebugger ()
 

Variables

int YACS::traceLevel =0
 

Function Documentation

void AttachDebugger ( )

Definition at line 36 of file YacsTrace.cxx.

Referenced by YACS::ENGINE::RefCounter::~RefCounter().

37 {
38  if(getenv ("YACSDEBUGGER"))
39  {
40  std::stringstream exec;
41  exec << "$YACSDEBUGGER " << getpid() << "&";
42  std::cerr << exec.str() << std::endl;
43  system(exec.str().c_str());
44  while(1);
45  }
46 }