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

Go to the source code of this file.

Namespaces

 YACS
 

Functions

void AttachDebugger ()
 

Variables

int YACS::traceLevel = 0
 

Function Documentation

◆ AttachDebugger()

void AttachDebugger ( )

Definition at line 52 of file YacsTrace.cxx.

53 {
54  if(getenv ("YACSDEBUGGER"))
55  {
56  std::stringstream exec;
57  exec << "$YACSDEBUGGER " << getpid() << "&";
58  std::cerr << exec.str() << std::endl;
59  system(exec.str().c_str());
60  while(1);
61  }
62 }

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