818 validateVM();
819 return hasNewCapabilities() &&
820 capabilitiesNew().canRequestMonitorEvents;
821 }
822
823 public boolean canGetMonitorFrameInfo() {
824 validateVM();
825 return hasNewCapabilities() &&
826 capabilitiesNew().canGetMonitorFrameInfo;
827 }
828
829 public boolean canGetModuleInfo() {
830 validateVM();
831 return versionInfo().jdwpMajor >= 9;
832 }
833
834 boolean mayCreateVirtualThreads() {
835 return versionInfo().jdwpMajor >= 19;
836 }
837
838 public void setDebugTraceMode(int traceFlags) {
839 validateVM();
840 this.traceFlags = traceFlags;
841 this.traceReceives = (traceFlags & TRACE_RECEIVES) != 0;
842 }
843
844 void printTrace(String string) {
845 System.err.println("[JDI: " + string + "]");
846 }
847
848 void printReceiveTrace(int depth, String string) {
849 StringBuilder sb = new StringBuilder("Receiving:");
850 for (int i = depth; i > 0; --i) {
851 sb.append(" ");
852 }
853 sb.append(string);
854 printTrace(sb.toString());
855 }
856
857 private synchronized ReferenceTypeImpl addReferenceType(long id,
|
818 validateVM();
819 return hasNewCapabilities() &&
820 capabilitiesNew().canRequestMonitorEvents;
821 }
822
823 public boolean canGetMonitorFrameInfo() {
824 validateVM();
825 return hasNewCapabilities() &&
826 capabilitiesNew().canGetMonitorFrameInfo;
827 }
828
829 public boolean canGetModuleInfo() {
830 validateVM();
831 return versionInfo().jdwpMajor >= 9;
832 }
833
834 boolean mayCreateVirtualThreads() {
835 return versionInfo().jdwpMajor >= 19;
836 }
837
838 public boolean supportsValueClasses() {
839 return versionInfo().jdwpMajor >= 27;
840 }
841
842 public void setDebugTraceMode(int traceFlags) {
843 validateVM();
844 this.traceFlags = traceFlags;
845 this.traceReceives = (traceFlags & TRACE_RECEIVES) != 0;
846 }
847
848 void printTrace(String string) {
849 System.err.println("[JDI: " + string + "]");
850 }
851
852 void printReceiveTrace(int depth, String string) {
853 StringBuilder sb = new StringBuilder("Receiving:");
854 for (int i = depth; i > 0; --i) {
855 sb.append(" ");
856 }
857 sb.append(string);
858 printTrace(sb.toString());
859 }
860
861 private synchronized ReferenceTypeImpl addReferenceType(long id,
|