gtool5 Fortran 90/95 Library 1.0.0-rc5
日本語
Loading...
Searching...
No Matches
Public Member Functions | List of all members
dc_args::debug Interface Reference

Public Member Functions

subroutine dcargsdebug0 (arg)
 

Detailed Description

Definition at line 342 of file dc_args.f90.

Member Function/Subroutine Documentation

◆ dcargsdebug0()

subroutine dc_args::debug::dcargsdebug0 ( type(args), intent(inout)  arg)

Auto-configure debug option

Performs automatic configuration of the debug option.

When -D or –debug is specified, automatically calls dc_trace::SetDebug to configure arg.

Parameters
[in,out]argARGS derived type variable

Definition at line 667 of file dc_args.f90.

668 use dc_types, only: string
669 use dc_string, only: stoa, stoi
670 use dc_trace, only: setdebug
671 use dc_message, only: messagenotify
672 implicit none
673 type(ARGS), intent(inout) :: arg
674 logical :: OPT_debug
675 character(STRING) :: VAL_debug
676 character(len = *), parameter :: subname = 'DCArgsDebug'
677 continue
678 if (.not. arg % initialized) then
679 call messagenotify('W', subname, 'Call Open before Debug in dc_args.')
680 call dcargsopen(arg)
681 end if
682 call option(arg, stoa('-D', '--debug'), opt_debug, val_debug, &
683 & help="call dc_trace#SetDebug (display a lot of messages for debug). " // &
684 & "VAL is unit number (default is standard output)")
685 if (opt_debug) then
686 if (trim(val_debug) == '') then
687 call setdebug
688 else
689 call setdebug(stoi(val_debug))
690 end if
691 end if
692 return
Message output module.
Handling character types.
Definition dc_string.f90:83
Debug tracing module.
Definition dc_trace.f90:150
subroutine, public setdebug(debug)
Definition dc_trace.f90:336
Provides kind type parameter values.
Definition dc_types.f90:55
integer, parameter, public string
Character length for string
Definition dc_types.f90:137

The documentation for this interface was generated from the following file: